add:新增上传接口,对接表单上传
This commit is contained in:
1 parent
280847acd1
commit
6120d0b8fa
7 files changed
+166
-113
No files matched your search
+8
-8
@@ -45,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