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