首次登录修改密码去除调用logout接口
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-12-26 15:52:40 +08:00
parent 3925652428
commit d1ed8b39f0
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ export default {
...mapMutations({ setLanguage: 'lang/setLanguage' }),
async logout() {
var loginType = zzSessionStorage.getItem('loginType')
await this.$store.dispatch('user/logout')
await this.$store.dispatch('user/resetData')
if (loginType) {
this.$router.push(`/login?loginType=${loginType}`)
} else {