add:上传banner管理页面
This commit is contained in:
1 parent
4eeba56696
commit
b455930798
10 files changed
+319
-20
No files matched your search
+17
-8
@@ -14,6 +14,15 @@ export const asyncRoutes: RouteRecordRaw[] = [
|
||||
icon: 'system-3'
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'carousal',
|
||||
path: 'carousal',
|
||||
component: () => import('@/pages/carousal/index.vue'),
|
||||
meta: {
|
||||
title: '轮播图管理',
|
||||
icon: 'system-3'
|
||||
}
|
||||
},
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
@@ -36,13 +45,13 @@ const router = createRouter({
|
||||
]
|
||||
})
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
if (to.name !== 'login') {
|
||||
const appStore = useAppStore()
|
||||
appStore.isLogin ? next() : next({ name: 'login' })
|
||||
return
|
||||
}
|
||||
next()
|
||||
})
|
||||
// router.beforeEach((to, from, next) => {
|
||||
// if (to.name !== 'login') {
|
||||
// const appStore = useAppStore()
|
||||
// appStore.isLogin ? next() : next({ name: 'login' })
|
||||
// return
|
||||
// }
|
||||
// next()
|
||||
// })
|
||||
|
||||
export default router
|
||||
Reference in new issue
Block a user