Commit 374d80e6 authored by wangxl's avatar wangxl

33333

parent f99ef3bf
......@@ -329,10 +329,6 @@ router.beforeEach(async (to, from, next) => {
NProgress.done()
}
} else {
if (!!!hasUser.projType) {
setType(hasUser.type + '')
this.$store.commit('app/setProjType', hasUser.type)
}
await store.dispatch('app/auth', to.path)
next()
NProgress.done()
......
......@@ -133,7 +133,7 @@ export default {
this.$message.success('登录成功!');
setToken(data.access_token)
//this.$router.push({ path: this.redirect || '/home', query: this.otherQuery })
this.$router.push({ path: '/home' })
this.$router.push({ path: '/' })
}
else {
this.getCode()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment