feat: 初始化

This commit is contained in:
dengtongyu committed 2023-04-18 20:02:38 +08:00
commit ef8081b838
64 files changed
+2137

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
<script setup lang="ts" name="DeviceAbnormal">
import { useRoute } from "vue-router";
import Abnormal from "@/components/abnormal/index.vue";
defineProps<{
text?: string;
}>();
const route = useRoute();
const from: any = route.query.from;
const msg: any = route.query.text;
const icon = new URL("../../assets/svg/device_abnormal.svg", import.meta.url).href;
const defaultText = "您的设备好像无法打开该网页";
</script>
<template>
<Abnormal
:icon="icon"
:text="text || msg || defaultText"
:from="from"
/>
</template>