|
@@ -85,12 +85,6 @@ export const backStageManageRouterItem = [
|
|
|
meta: { title: '应用版本清单', icon: 'vision' }
|
|
|
},
|
|
|
{
|
|
|
- path: 'function',
|
|
|
- name: 'Administrator_function',
|
|
|
- component: () => import('@/views/backStageManage/application/apply/index.vue'),
|
|
|
- meta: { title: '功能清单', icon: 'function' }
|
|
|
- },
|
|
|
- {
|
|
|
path: 'addVersion',
|
|
|
name: 'Administrator_addVersion',
|
|
|
component: () => import('@/views/backStageManage/application/vision/addVersion.vue'),
|
|
@@ -162,16 +156,16 @@ const router = new VueRouter({
|
|
|
})
|
|
|
|
|
|
router.beforeEach((to, from, next) => {
|
|
|
- const tokenStr = Cookies.get('token')
|
|
|
if (to.meta.title) {
|
|
|
document.title = to.meta.title;
|
|
|
}
|
|
|
- if (to.path == '/administrator/login'||to.path=='/home') {
|
|
|
+ if (to.path == '/administrator/login'|| routeExists(routes,to.path) || to.meta.notLogin) {
|
|
|
Cookies.remove("token")
|
|
|
localStorage.removeItem('vuex')
|
|
|
next()
|
|
|
}
|
|
|
else {
|
|
|
+ const tokenStr = Cookies.get('token')
|
|
|
switch (tokenStr) {
|
|
|
case undefined:
|
|
|
if (to.meta.title) {
|