Authored by 张文文

data clear

@@ -388,18 +388,8 @@ export default { @@ -388,18 +388,8 @@ export default {
388 } 388 }
389 }, 389 },
390 activated() { 390 activated() {
391 - this.provinces = this.citys = this.areas = this.streets = [];  
392 -  
393 - this.province.id = this.city.id = this.area.id = this.street.id = "";  
394 - this.province.title = this.city.title = this.area.title = this.street.title =  
395 - "";  
396 - this.province.allTitle = this.city.allTitle = this.area.allTitle = this.street.allTitle =  
397 - "";  
398 -  
399 - this.province.showList = this.province.titleActive = true;  
400 - this.city.showList = this.area.showList = this.street.showList = false;  
401 - this.city.titleActive = this.area.titleActive = this.street.titleActive = false;  
402 - 391 + // 重置data数据
  392 + Object.assign(this.$data, this.$options.data());
403 this.switchAddress(); 393 this.switchAddress();
404 } 394 }
405 }; 395 };