修复用户信息可能不更新的问题

This commit is contained in:
TOP糯米 2023-04-01 09:12:03 +08:00
parent 5830f4e038
commit cb965ac04d
4 changed files with 4 additions and 4 deletions

View File

@ -184,7 +184,7 @@ export default {
password: this.password,
})
.then((response) => {
this.$store.dispatch("user/info");
this.$store.dispatch("user/info", true);
this.$store.commit("system/refreshGet", true);
this.$store.commit("system/refreshOrder", true);
this.$utils.toast(response.msg).then(() => {

View File

@ -52,7 +52,7 @@ export default {
},
onLoad() {},
async onShow() {
await this.$store.dispatch("user/info");
await this.$store.dispatch("user/info", true);
this.$models.user.serviceData().then((data) => {
this.balance = data.disposableBalance;
});

View File

@ -159,7 +159,7 @@ export default {
},
onLoad() {},
async onShow() {
await this.$store.dispatch("user/info");
await this.$store.dispatch("user/info", true);
if (this.isLogin) {
if (!this.finishInfo) {
this.$utils.toPage("/pages/member/service-info");

View File

@ -200,7 +200,7 @@ export default {
onLoad() {},
onShow() {},
async onReady() {
await this.$store.dispatch("user/info");
await this.$store.dispatch("user/info", true);
if (this.finishInfo) {
this.avatar = this.userInfo.worker.avatar;
this.province = this.userInfo.worker.province;