From 386474bc47586df8d6987604b00249da97a41590 Mon Sep 17 00:00:00 2001 From: xuecong <> Date: Fri, 12 Nov 2021 21:37:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ws=E6=8E=A8=E9=80=81=E6=97=B6=E5=80=99?= =?UTF-8?q?=E5=9C=A8=E8=AF=A6=E6=83=85=E9=A1=B5=E6=95=B0=E6=8D=AE=E4=B8=8D?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/basic/complain/detail.vue | 5 +++++ web/src/views/basic/fitment/detail.vue | 5 +++++ web/src/views/basic/movecar/detail.vue | 5 +++++ web/src/views/basic/repair/detail.vue | 5 +++++ 4 files changed, 20 insertions(+) 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: {