harrywan f6c3f5fd88 feat(fes-cli): 路由支持模糊匹配和智能路由匹配
1. 路由支持模糊匹配,例如"pages/*.vue"解析成"*",通过模糊匹配可以实现404 2.根据精准匹配优先原则实现智能路由 3.
pages下的名称为componets的文件夹被忽略,其中的vue文件不会被解析成路由

re #32
2020-10-22 10:09:09 +08:00

43 lines
1018 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="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>