Commit 374d80e6 authored by wangxl's avatar wangxl

33333

parent f99ef3bf
...@@ -329,10 +329,6 @@ router.beforeEach(async (to, from, next) => { ...@@ -329,10 +329,6 @@ router.beforeEach(async (to, from, next) => {
NProgress.done() NProgress.done()
} }
} else { } else {
if (!!!hasUser.projType) {
setType(hasUser.type + '')
this.$store.commit('app/setProjType', hasUser.type)
}
await store.dispatch('app/auth', to.path) await store.dispatch('app/auth', to.path)
next() next()
NProgress.done() NProgress.done()
......
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
this.$message.success('登录成功!'); this.$message.success('登录成功!');
setToken(data.access_token) setToken(data.access_token)
//this.$router.push({ path: this.redirect || '/home', query: this.otherQuery }) //this.$router.push({ path: this.redirect || '/home', query: this.otherQuery })
this.$router.push({ path: '/home' }) this.$router.push({ path: '/' })
} }
else { else {
this.getCode() 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