Ver código fonte

登录后刷新页面

master^2
周江龙 2 anos atrás
pai
commit
f580613ce2
1 arquivos alterados com 2 adições e 1 exclusões
  1. +2
    -1
      src/views/login/login.vue

+ 2
- 1
src/views/login/login.vue Ver arquivo

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

Carregando…
Cancelar
Salvar