Fix:省市区无法选中

This commit is contained in:
LinCyJang
2025-10-17 00:44:04 +08:00
parent e559765260
commit 6ffe3216d8
+3 -3
View File
@@ -145,7 +145,7 @@
<CitySelect
ref="cityselect"
:disabled="form.isDraft === 0 && (form.reviewStatus === 0 || form.reviewStatus === 1)"
:defaultValue="form.area || '请选择地址'"
:defaultValue="form.area || '请选择'"
:items="district"
@callback="resultCity"
/>
@@ -427,7 +427,7 @@ export default {
}
saveTravelDraft(params).then(res => {
if (res.status === 200) {
uni.$u.toast('草稿保存成功')
// uni.$u.toast('草稿保存成功')
}
}).catch(err => {
uni.$u.toast(err.msg)
@@ -450,7 +450,7 @@ export default {
this.form.reviewStatus = res.data.reviewStatus
this.form.reviewMsg = res.data.reviewMsg
this.form.isDraft = res.data.isDraft
this.form.area = `${this.form.provinceName || ''} ${this.form.cityName || ''} ${this.form.areaName || ''}`
this.form.area = `${this.form.provinceName || ''} ${this.form.cityName || ''} ${this.form.areaName || ''}`.trim()
this.captcha = travelInfo.captcha
}
}).catch(err => {