浏览代码

登录后刷新页面

master^2
周江龙 2 年前
父节点
当前提交
f580613ce2
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/views/login/login.vue

+ 2
- 1
src/views/login/login.vue 查看文件

@@ -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);
}

正在加载...
取消
保存