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