地区组件修复
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user