fix: ws推送时候在详情页数据不刷新的问题
This commit is contained in:
parent
a2baa18d75
commit
386474bc47
@ -304,6 +304,8 @@ export default {
|
||||
community_id: this.postInfo.default_community_id
|
||||
};
|
||||
|
||||
this.fetching = true;
|
||||
|
||||
utils.request
|
||||
.post('/complain/detail', data)
|
||||
.then(res => {
|
||||
@ -460,6 +462,9 @@ export default {
|
||||
if (cur.params.id !== old.params.id) {
|
||||
this.getDetail();
|
||||
}
|
||||
},
|
||||
'$route.params.id'() {
|
||||
this.getDetail();
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
@ -269,6 +269,8 @@ export default {
|
||||
community_id: this.postInfo.default_community_id
|
||||
};
|
||||
|
||||
this.fetching = true;
|
||||
|
||||
utils.request
|
||||
.post('/fitment/detail', data)
|
||||
.then(res => {
|
||||
@ -409,6 +411,9 @@ export default {
|
||||
watch: {
|
||||
'postInfo.default_community_id'() {
|
||||
this.getDetail();
|
||||
},
|
||||
'$route.params.id'() {
|
||||
this.getDetail();
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
@ -193,6 +193,8 @@ export default {
|
||||
community_id: this.postInfo.default_community_id
|
||||
};
|
||||
|
||||
this.fetching = true;
|
||||
|
||||
utils.request
|
||||
.post('/move_car/detail', data)
|
||||
.then(res => {
|
||||
@ -274,6 +276,9 @@ export default {
|
||||
watch: {
|
||||
'postInfo.default_community_id'() {
|
||||
this.getDetail();
|
||||
},
|
||||
'$route.params.id'() {
|
||||
this.getDetail();
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
@ -316,6 +316,8 @@ export default {
|
||||
community_id: this.postInfo.default_community_id
|
||||
};
|
||||
|
||||
this.fetching = true;
|
||||
|
||||
utils.request
|
||||
.post('/repair/detail', data)
|
||||
.then(res => {
|
||||
@ -465,6 +467,9 @@ export default {
|
||||
if (cur.params.id !== old.params.id) {
|
||||
this.getDetail();
|
||||
}
|
||||
},
|
||||
'$route.params.id'() {
|
||||
this.getDetail();
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user