Commit 244407d9 by Administrator

Merge branch 'add-message-tip' into 'master'

更新登录后的路由

See merge request pigbigbig/beyond-clouds-front!127
parents ee20ab23 192f8b40
......@@ -211,9 +211,9 @@ export default {
message: '登录成功!'
});
if (!this.from || this.from === '/users/register' || this.from === '/users/reset') {
this.$router.push(this.from)
} else {
this.$router.push('/')
} else {
this.$router.push(this.from)
}
} else {
store.commit('auth/logout');
......
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