chore(用户中心): 账号退出或者注销,清理用户隐私协议授权设置

This commit is contained in:
2026-01-08 14:58:47 +08:00
parent 5a8663eb48
commit 4f9c353e9a

View File

@@ -96,6 +96,7 @@ export default {
this.$store.commit('setMemberInfo', ''); this.$store.commit('setMemberInfo', '');
this.$store.dispatch('emptyCart'); this.$store.dispatch('emptyCart');
uni.removeStorageSync('authInfo'); uni.removeStorageSync('authInfo');
uni.removeStorageSync('privacyAgreed');
this.$util.redirectTo(this.$util.MEMBER_PAGE_URL); this.$util.redirectTo(this.$util.MEMBER_PAGE_URL);
} }
} }
@@ -118,7 +119,9 @@ export default {
this.$store.commit('setMemberInfo', ''); this.$store.commit('setMemberInfo', '');
this.$store.dispatch('emptyCart'); this.$store.dispatch('emptyCart');
uni.removeStorageSync('authInfo'); uni.removeStorageSync('authInfo');
uni.removeStorageSync('privacyAgreed');
this.$util.redirectTo(this.$util.MEMBER_PAGE_URL); this.$util.redirectTo(this.$util.MEMBER_PAGE_URL);
} else { } else {
this.$util.showToast({ this.$util.showToast({
title: rres.message title: rres.message