提交 6859e05d 编写于 作者: zhentian.jia's avatar zhentian.jia

最底层添加 leaf

上级 45be0541
...@@ -54,7 +54,7 @@ service.interceptors.request.use(config => { ...@@ -54,7 +54,7 @@ service.interceptors.request.use(config => {
} }
if( process.env.BUILD_ENV == "development" ){ // 本地开发环境 if( process.env.BUILD_ENV == "development" ){ // 本地开发环境
// console.log('环境变量>>>> ', process.env.BUILD_ENV); // console.log('环境变量>>>> ', process.env.BUILD_ENV);
config.headers['token'] = 'D2E29BE9FF794703A482518A04D344E2'; config.headers['token'] = 'A97A609C1A98467C9372ACF55DD3BA35';
}else{ }else{
config.headers['token'] = localStorage.getItem('storageToken') config.headers['token'] = localStorage.getItem('storageToken')
} }
......
...@@ -461,6 +461,8 @@ ...@@ -461,6 +461,8 @@
await this.getTown(provinceId, cityId, countyId); await this.getTown(provinceId, cityId, countyId);
} }
this.addressList = [Number(provinceId), Number(cityId), Number(countyId), Number(townId)]; this.addressList = [Number(provinceId), Number(cityId), Number(countyId), Number(townId)];
console.log(this.provinceList,this.addressList);
// debugger;
this.$forceUpdate(); this.$forceUpdate();
}else { }else {
this.addressList = []; this.addressList = [];
...@@ -772,6 +774,7 @@ ...@@ -772,6 +774,7 @@
this.townLists.map(item => { this.townLists.map(item => {
this.$set(item, "id", item.townId); this.$set(item, "id", item.townId);
this.$set(item, "name", item.townName); this.$set(item, "name", item.townName);
this.$set(item, "leaf", true);
// this.$set(item, "children", []); // this.$set(item, "children", []);
}); });
this.provinceList.map((item, index) => { this.provinceList.map((item, index) => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册