修复用户信息可能不更新的问题
This commit is contained in:
parent
5830f4e038
commit
cb965ac04d
|
@ -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(() => {
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue