Commit ee20ab23 by Administrator

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

Add message tip

See merge request pigbigbig/beyond-clouds-front!126
parents 5903a167 93088d6b
......@@ -210,8 +210,12 @@ export default {
type: 'success',
message: '登录成功!'
});
if (!this.from || this.from === '/users/register' || this.from === '/users/reset') {
this.$router.push(this.from)
} else {
this.$router.push('/')
}
} else {
store.commit('auth/logout');
store.commit('userProfile/removeUser')
}
......
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