Commit ef6bec74 authored by 赵茹林's avatar 赵茹林

fix last callback not update

parent 5d117cda
...@@ -267,13 +267,15 @@ ...@@ -267,13 +267,15 @@
this.callbackEdit.wechat.value = this.user.info.wx_number; this.callbackEdit.wechat.value = this.user.info.wx_number;
this.callbackEdit.wechat.origin = this.user.info.wx_number; this.callbackEdit.wechat.origin = this.user.info.wx_number;
}, },
'callbackObj.timestamp'() { 'callbackObj.timestamp'() { // 时间戳变化更新数据
this.user.user_id = this.callbackObj.user_id; this.initCallback();
this.getUser();
this.getTag();
} }
}, },
mounted() { mounted() {
this.initCallback();
},
methods: {
initCallback() {
this.user.user_id = this.callbackObj.user_id; this.user.user_id = this.callbackObj.user_id;
if (!this.hasUserInfo) { if (!this.hasUserInfo) {
this.getUser(); this.getUser();
...@@ -294,9 +296,8 @@ ...@@ -294,9 +296,8 @@
} }
}) })
} }
}, },
methods: {
filterName(string, type) { filterName(string, type) {
return this[type].find(i => { return this[type].find(i => {
return i.value == string return i.value == string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment