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 }