You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
715 B
24 lines
715 B
<template>
|
|
<el-card class="m-5 w-screen-sm mt-[60px] m-auto">
|
|
<!-- 异常状态 -->
|
|
<el-result
|
|
:icon="website.statusIcon || 'info'"
|
|
:title="`${website.statusName || '404'}`"
|
|
:sub-title="website.statusText || '页面找不到了 :('"
|
|
>
|
|
<template #extra>
|
|
<el-button type="primary" v-if="website.statusUrl" @click="navigateTo(`${website.statusUrl}`)">{{ website.statusBtnText }}</el-button>
|
|
</template>
|
|
</el-result>
|
|
|
|
</el-card>
|
|
</template>
|
|
<script setup lang="ts">
|
|
import {useWebsite} from "~/composables/configState";
|
|
|
|
const website = useWebsite()
|
|
|
|
const navigateTo = (url: string) => {
|
|
window.location.href = url;
|
|
}
|
|
</script>
|