地区组件修复

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: { methods: {
getInfo(areaId) { getInfo(areaId) {
return areaId && this.$http.post('/admin/area/getAllParentAreaId', null, { return areaId && this.$instance.post('/admin/area/getAllParentAreaId', null, {
withoutToken: true, withoutToken: true,
params: {areaId}, params: {areaId},
}).then(res => { }).then(res => {
@@ -96,7 +96,7 @@ export default {
}) })
}, },
getChildAreas(id) { getChildAreas(id) {
id && this.$http.post('/admin/area/queryAreaByParentId', null, { id && this.$instance.post('/admin/area/queryAreaByParentId', null, {
withoutToken: true, withoutToken: true,
params: {id}, params: {id},
}).then((res) => { }).then((res) => {
@@ -115,7 +115,7 @@ export default {
}) })
}, },
getProvinces() { 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) { if (res?.data) {
this.list = res.data this.list = res.data
} }