[bugfix] AddressEdit: fix test cases (#1393)

This commit is contained in:
neverland
2018-07-04 00:06:00 +08:00
committed by GitHub
parent 541299ccd5
commit 4fd891ac29
2 changed files with 29 additions and 31 deletions
+4 -6
View File
@@ -282,12 +282,10 @@ export default create({
setAreaCode(code) {
this.data.area_code = code || '';
this.$nextTick(() => {
this.$nextTick(() => {
const { area } = this.$refs;
if (area) {
this.assignAreaValues(area.getValues());
}
});
const { area } = this.$refs;
if (area) {
this.assignAreaValues(area.getValues());
}
});
},