修复用户信息可能不更新的问题
This commit is contained in:
parent
5830f4e038
commit
cb965ac04d
|
@ -184,7 +184,7 @@ export default {
|
||||||
password: this.password,
|
password: this.password,
|
||||||
})
|
})
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
this.$store.dispatch("user/info");
|
this.$store.dispatch("user/info", true);
|
||||||
this.$store.commit("system/refreshGet", true);
|
this.$store.commit("system/refreshGet", true);
|
||||||
this.$store.commit("system/refreshOrder", true);
|
this.$store.commit("system/refreshOrder", true);
|
||||||
this.$utils.toast(response.msg).then(() => {
|
this.$utils.toast(response.msg).then(() => {
|
||||||
|
|
|
@ -52,7 +52,7 @@ export default {
|
||||||
},
|
},
|
||||||
onLoad() {},
|
onLoad() {},
|
||||||
async onShow() {
|
async onShow() {
|
||||||
await this.$store.dispatch("user/info");
|
await this.$store.dispatch("user/info", true);
|
||||||
this.$models.user.serviceData().then((data) => {
|
this.$models.user.serviceData().then((data) => {
|
||||||
this.balance = data.disposableBalance;
|
this.balance = data.disposableBalance;
|
||||||
});
|
});
|
||||||
|
|
|
@ -159,7 +159,7 @@ export default {
|
||||||
},
|
},
|
||||||
onLoad() {},
|
onLoad() {},
|
||||||
async onShow() {
|
async onShow() {
|
||||||
await this.$store.dispatch("user/info");
|
await this.$store.dispatch("user/info", true);
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
if (!this.finishInfo) {
|
if (!this.finishInfo) {
|
||||||
this.$utils.toPage("/pages/member/service-info");
|
this.$utils.toPage("/pages/member/service-info");
|
||||||
|
|
|
@ -200,7 +200,7 @@ export default {
|
||||||
onLoad() {},
|
onLoad() {},
|
||||||
onShow() {},
|
onShow() {},
|
||||||
async onReady() {
|
async onReady() {
|
||||||
await this.$store.dispatch("user/info");
|
await this.$store.dispatch("user/info", true);
|
||||||
if (this.finishInfo) {
|
if (this.finishInfo) {
|
||||||
this.avatar = this.userInfo.worker.avatar;
|
this.avatar = this.userInfo.worker.avatar;
|
||||||
this.province = this.userInfo.worker.province;
|
this.province = this.userInfo.worker.province;
|
||||||
|
|
Loading…
Reference in New Issue