地区组件修复

This commit is contained in:
aixianling
2022-03-21 17:53:29 +08:00
parent 27920b8638
commit e866b41f42

View File

@@ -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
}