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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< script lang = "ts" setup >
import { useRouter } from 'vue-router'
const router = useRouter ( )
function goHome ( ) {
router . push ( '/' )
}
< / script >
< template >
< div class = "flex flex-col justify-center page-container" >
< div class = "text-center" >
< img src = "~@/assets/images/exception/404.svg" alt = "" >
< / div >
< div class = "text-center" >
< h1 class = "text-base text-gray-500" >
抱歉 , 你访问的页面不存在
< / h1 >
< n -button type = "info" @click ="goHome" >
回 到 首 页
< / n -button >
< / div >
< / div >
< / template >
< style lang = "less" scoped >
. page - container {
width : 100 % ;
border - radius : 4 px ;
padding : 50 px 0 ;
height : 100 vh ;
. text - center {
h1 {
color : # 666 ;
padding : 20 px 0 ;
}
}
img {
width : 350 px ;
margin : 0 auto ;
}
}
< / style >