Files
LingXi-CRM/web/src/views/Error.vue
T
2022-11-28 16:38:45 +08:00

34 lines
678 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<div class="container">
<a-result status="404" title="404" sub-title="抱歉您访问的页面不存在">
<template #extra>
<a-button type="primary" @click="refresh">刷新试试</a-button>
</template>
</a-result>
</div>
</template>
<script>
import router from '../router/index';
export default {
setup() {
const refresh = () => {
router.push('/')
}
return {
refresh
}
}
}
</script>
<style scoped>
.container {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
</style>