3
0
Fork 0

feat(regionSelect): 修复type传值错误的问题

This commit is contained in:
woody 2025-07-14 13:51:57 +08:00
parent f8cc115c7f
commit 441d84a00d
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ export default {
if (!gradeValue) return if (!gradeValue) return
this.gradeValue = gradeValue this.gradeValue = gradeValue
const params = { const params = {
type: 'county', type: gradeValue === 80 ? 'city' : 'county',
} }
getRegionAreaList(params).then(res => { getRegionAreaList(params).then(res => {
this.provinceList = res.data.filter(item => item.parent === 0) this.provinceList = res.data.filter(item => item.parent === 0)