forked from angelo/web-retail-h5
feat(regionSelect): 修复type传值错误的问题
This commit is contained in:
parent
f8cc115c7f
commit
441d84a00d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue