Commit c615e028 authored by chenwei's avatar chenwei

国家选择判空

parent 6f09e64d
......@@ -268,12 +268,16 @@ export default {
});
},
handleGetCityList(id) {
let params = {
id: id,
};
getCityList(params).then((res) => {
this.cityList = res.data;
});
if (id) {
let params = {
id: id,
};
getCityList(params).then((res) => {
this.cityList = res.data;
});
} else {
this.cityList = [];
}
},
handleQuery() {
this.queryParams.pageNo = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment