'admin-21.04.22:部分电脑登录后首屏卡断问题,使用location.href替代router.push'

This commit is contained in:
lyt
2021-04-22 17:22:24 +08:00
parent fcced5d3bb
commit a6ae98f284

View File

@ -177,7 +177,7 @@ export default {
// 存储用户信息到vuex
this.$store.dispatch('userInfos/setUserInfos', userInfos);
PrevLoading.start();
this.$router.push('/');
window.location.href = `${window.location.origin}${window.location.pathname}`;
setTimeout(() => {
this.$message.success(`${this.currentTime}${this.$t('message.login.signInText')}`);
}, 300);