@@ -98,7 +98,9 @@ export default {
type: 'warning'
}).then(() => {
this.$store.dispatch('LogOut').then(() => {
- location.href = '/login';
+ this.$router.push({
+ path: '/login' // 将路径完全替换为 /index
+ });
})
}).catch(() => {});
}