add:新增上传接口,对接表单上传

This commit is contained in:
zlong committed 2024-11-21 00:22:51 +08:00
1 parent 280847acd1
commit 6120d0b8fa
7 files changed
+166 -113

No files matched your search

+8 -8
View File
@@ -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