diff --git a/web/src/views/basic/complain/detail.vue b/web/src/views/basic/complain/detail.vue index d3f43e4..dd023cb 100644 --- a/web/src/views/basic/complain/detail.vue +++ b/web/src/views/basic/complain/detail.vue @@ -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: { diff --git a/web/src/views/basic/fitment/detail.vue b/web/src/views/basic/fitment/detail.vue index f8b0b64..4801bda 100644 --- a/web/src/views/basic/fitment/detail.vue +++ b/web/src/views/basic/fitment/detail.vue @@ -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: { diff --git a/web/src/views/basic/movecar/detail.vue b/web/src/views/basic/movecar/detail.vue index 7781d9e..30d531c 100644 --- a/web/src/views/basic/movecar/detail.vue +++ b/web/src/views/basic/movecar/detail.vue @@ -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: { diff --git a/web/src/views/basic/repair/detail.vue b/web/src/views/basic/repair/detail.vue index 82ad839..892686f 100644 --- a/web/src/views/basic/repair/detail.vue +++ b/web/src/views/basic/repair/detail.vue @@ -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: {