fixed #553
This commit is contained in:
parent
361e3a1669
commit
48af13599c
2 changed files with 54 additions and 48 deletions
|
@ -79,8 +79,17 @@
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
value2: [],
|
value2: ['beijing', 'gugong'],
|
||||||
data: [{
|
data: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
c () {
|
||||||
|
this.value2 = []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.data = [{
|
||||||
value: 'beijing',
|
value: 'beijing',
|
||||||
label: '北京',
|
label: '北京',
|
||||||
children: [
|
children: [
|
||||||
|
@ -128,11 +137,5 @@
|
||||||
],
|
],
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
c () {
|
|
||||||
this.value2 = []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -219,6 +219,9 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.updateSelected(true);
|
this.updateSelected(true);
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
this.$nextTick(() => this.updateSelected());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue