登录页面加载时清空用户信息&导航页签信息

This commit is contained in:
2023-10-22 11:38:57 +08:00
parent ac3388f35d
commit 1ffd56efc2
2 changed files with 16 additions and 4 deletions
+5
View File
@@ -35,6 +35,11 @@ export default class Login extends Vue {
{ required: true, message: '请输入密码', trigger: 'blur' }
],
}
created(): void {
this.$store.commit('logout')
this.$store.commit('clearTabs')
localStorage.clear()
}
/**
* 登录
*/