Files
padui-home/src/pages/error/DeviceAbnormal.vue
T
2023-04-14 01:07:19 +08:00

25 lines
551 B
Vue

<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>