소스 검색

登录后刷新页面

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

Loading…
취소
저장