This commit is contained in:
13218645326 2023-12-10 02:30:17 +08:00
parent 5888ee3946
commit 8570c0c0c1
3 changed files with 6 additions and 7 deletions

3
env/.env.dev vendored
View File

@ -5,5 +5,6 @@ VITE_BUILD_MODE = 'dev'
# 开发环境接口地址
VITE_API_URL = '/proxyApi'
VITE_proxyTarget = 'http://10.40.92.16:9502'
# VITE_proxyTarget = 'http://10.40.92.16:8080'
VITE_proxyTarget = 'http://10.40.92.186:8080'
# 9502 9206

View File

@ -279,13 +279,11 @@ const router = createRouter({
router.beforeEach((to, from, next) => {
const store = useStore()
/* if (store.token || to.path == '/login') {
if (store.token || to.path == '/Login') {
next()
} else {
next('/login')
} */
next()
next('/Login')
}
// chrome
document.body.scrollTop = 0;
// firefox 兼容火狐

View File

@ -22,7 +22,7 @@
}
userStore.setToken(res.data.access_token)
//
router.push('/home')
router.push('/')
}
</script>