feat: 解决字典页面刷新404的问题

This commit is contained in:
cgd_mac 2022-02-24 19:23:26 +08:00
parent 951a390b23
commit ebfd3ce4ec
2 changed files with 3 additions and 17 deletions

View File

@ -75,19 +75,5 @@ export const constantRouterMap = [
{ {
path: '/404', path: '/404',
component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404') component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
},
{
path: '/dictionary',
component: BasicLayout,
redirect: '/sys/dictionary',
meta: { title: '词典分类' },
children: [
{
path: 'dictionaryItem/list/:id',
name: 'DictionaryItemList',
component: () => import('@/views/sys/dictionaryItem/DictionaryItemList'),
meta: { title: '词典项', keepAlive: true, permission: ['dictionaryItem'] }
}
]
} }
] ]

View File

@ -11,13 +11,13 @@
</div> </div>
<router-view /> <router-view />
<div class="footer"> <div class="footer">
<div class="links"> <!-- <div class="links">
<a href="_self">帮助</a> <a href="_self">帮助</a>
<a href="_self">隐私</a> <a href="_self">隐私</a>
<a href="_self">条款</a> <a href="_self">条款</a>
</div> </div> -->
<div class="copyright"> <div class="copyright">
Copyright &copy; 2021 XinMei Copyright &copy; 2022 XinMei
</div> </div>
</div> </div>
</div> </div>