mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
1. 路由支持模糊匹配,例如"pages/*.vue"解析成"*",通过模糊匹配可以实现404 2.根据精准匹配优先原则实现智能路由 3. pages下的名称为componets的文件夹被忽略,其中的vue文件不会被解析成路由 re #32
43 lines
1018 B
Vue
43 lines
1018 B
Vue
<template>
|
||
<div class="page-404">
|
||
<img class="page-404-bg" src="~assets/images/404.png" />
|
||
<div class="page-404-title">404</div>
|
||
<div class="page-404-subtilte">对不起, 你访问的页面不存在!</div>
|
||
<Wb-button @click="goHome" class="page-404-button" type="primary">返回首页</Wb-button>
|
||
</div>
|
||
</template>
|
||
<script>
|
||
export default {
|
||
methods: {
|
||
goHome() {
|
||
this.FesApp.router.push('/dashboard/console');
|
||
}
|
||
}
|
||
};
|
||
</script>
|
||
<style lang="scss" scoped>
|
||
.page-404{
|
||
text-align: center;
|
||
.page-404-bg{
|
||
display: block;
|
||
width: 600px;
|
||
margin: 50px auto;
|
||
}
|
||
.page-404-title{
|
||
color: rgba(0, 0, 0, 0.85);
|
||
font-size: 24px;
|
||
line-height: 1.8;
|
||
text-align: center;
|
||
}
|
||
.page-404-subtilte{
|
||
color: rgba(0, 0, 0, 0.45);
|
||
font-size: 14px;
|
||
line-height: 1.6;
|
||
text-align: center;
|
||
}
|
||
.page-404-button{
|
||
margin-top: 24px;
|
||
}
|
||
}
|
||
</style>
|