From e866b41f422398c67af22677aa24cb6894703e96 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 21 Mar 2022 17:53:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=8C=BA=E7=BB=84=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/pages/selectArea.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/pages/selectArea.vue b/src/components/pages/selectArea.vue index 001df6e..d6facb6 100644 --- a/src/components/pages/selectArea.vue +++ b/src/components/pages/selectArea.vue @@ -73,7 +73,7 @@ export default { }, methods: { getInfo(areaId) { - return areaId && this.$http.post('/admin/area/getAllParentAreaId', null, { + return areaId && this.$instance.post('/admin/area/getAllParentAreaId', null, { withoutToken: true, params: {areaId}, }).then(res => { @@ -96,7 +96,7 @@ export default { }) }, getChildAreas(id) { - id && this.$http.post('/admin/area/queryAreaByParentId', null, { + id && this.$instance.post('/admin/area/queryAreaByParentId', null, { withoutToken: true, params: {id}, }).then((res) => { @@ -115,7 +115,7 @@ export default { }) }, getProvinces() { - this.$http.post('/admin/area/queryProvinceList', null, {withoutToken: true}).then((res) => { + this.$instance.post('/admin/area/queryProvinceList', null, {withoutToken: true}).then((res) => { if (res?.data) { this.list = res.data }