Browse Source

登录后刷新页面

master^2
周江龙 2 years ago
parent
commit
f580613ce2
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/views/login/login.vue

+ 2
- 1
src/views/login/login.vue View File

@@ -69,8 +69,9 @@ export default {
this.$message({type: 'success', message: '登录成功'});
this.$store.dispatch('user/setToken', res.data.data.access_token).then(() => {
this.$router.push(this.$route.query.from || '/').catch(() => {
});
});
});
window.location.reload();
} else {
this.$message.error(res.data.msg);
}

Loading…
Cancel
Save