[bugfix] AddressEdit: setAreaCode now work (#524)

This commit is contained in:
neverland
2018-01-10 14:14:06 +08:00
committed by GitHub
parent 7278d90c12
commit 0bb1fe69a3
3 changed files with 12 additions and 10 deletions

View File

@@ -263,10 +263,12 @@ export default create({
setAreaCode(code) {
this.currentInfo.area_code = code;
this.$nextTick(() => {
const { area } = this.$refs;
if (area) {
this.assignAreaValues(area.getValues());
}
this.$nextTick(() => {
const { area } = this.$refs;
if (area) {
this.assignAreaValues(area.getValues());
}
});
});
}
}