修复编辑城市问题
This commit is contained in:
parent
9f8b145df9
commit
845d5f3240
@ -218,6 +218,7 @@ const open = async (type: string, id?: number) => {
|
|||||||
formType.value = type
|
formType.value = type
|
||||||
resetForm()
|
resetForm()
|
||||||
areaList.value = await AreaApi.getAreaTree()
|
areaList.value = await AreaApi.getAreaTree()
|
||||||
|
cityArr.value = []
|
||||||
// 修改时,设置数据
|
// 修改时,设置数据
|
||||||
if (id) {
|
if (id) {
|
||||||
formLoading.value = true
|
formLoading.value = true
|
||||||
@ -227,6 +228,7 @@ const open = async (type: string, id?: number) => {
|
|||||||
cityArr.value.push(formData.value.province)
|
cityArr.value.push(formData.value.province)
|
||||||
cityArr.value.push(formData.value.city)
|
cityArr.value.push(formData.value.city)
|
||||||
cityArr.value.push(formData.value.area)
|
cityArr.value.push(formData.value.area)
|
||||||
|
console.log('cityArr:',cityArr.value)
|
||||||
} finally {
|
} finally {
|
||||||
formLoading.value = false
|
formLoading.value = false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user