二手车交易,直辖市的code取第一个
This commit is contained in:
@ -258,12 +258,14 @@ export default {
|
||||
this.$router.push({ name: "privacyComponent"})
|
||||
},
|
||||
confirmHandle(val){
|
||||
let data=val.length
|
||||
this.form.areaCode=val[data - 1]?.code
|
||||
// let data=val.length
|
||||
// this.form.areaCode=val[data - 1]?.code
|
||||
if(val[0].name.includes('市')){
|
||||
this.areaName=val[0].name
|
||||
this.form.areaCode=val[0].code
|
||||
}else{
|
||||
this.areaName=val[0].name +val[1].name
|
||||
this.form.areaCode=val[1].code
|
||||
}
|
||||
this.areaShow=false
|
||||
},
|
||||
|
Reference in New Issue
Block a user