Authored by 张文文

data clear

... ... @@ -388,18 +388,8 @@ export default {
}
},
activated() {
this.provinces = this.citys = this.areas = this.streets = [];
this.province.id = this.city.id = this.area.id = this.street.id = "";
this.province.title = this.city.title = this.area.title = this.street.title =
"";
this.province.allTitle = this.city.allTitle = this.area.allTitle = this.street.allTitle =
"";
this.province.showList = this.province.titleActive = true;
this.city.showList = this.area.showList = this.street.showList = false;
this.city.titleActive = this.area.titleActive = this.street.titleActive = false;
// 重置data数据
Object.assign(this.$data, this.$options.data());
this.switchAddress();
}
};
... ...