Commit c615e028 authored by chenwei's avatar chenwei

国家选择判空

parent 6f09e64d
...@@ -268,12 +268,16 @@ export default { ...@@ -268,12 +268,16 @@ export default {
}); });
}, },
handleGetCityList(id) { handleGetCityList(id) {
if (id) {
let params = { let params = {
id: id, id: id,
}; };
getCityList(params).then((res) => { getCityList(params).then((res) => {
this.cityList = res.data; this.cityList = res.data;
}); });
} else {
this.cityList = [];
}
}, },
handleQuery() { handleQuery() {
this.queryParams.pageNo = 1; 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