Parcourir la source

登录后刷新页面

master^2
周江龙 il y a 2 ans
Parent
révision
f580613ce2
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +2
    -1
      src/views/login/login.vue

+ 2
- 1
src/views/login/login.vue Voir le fichier

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

Chargement…
Annuler
Enregistrer