|
|
@@ -26,7 +26,7 @@ export default {
|
|
|
watch: {
|
|
|
cascaderVal(newVal) {
|
|
|
this.$emit('input', newVal);
|
|
|
- this.$emit('change', this.cascaderVal, this.findValName(this.value))
|
|
|
+ this.$emit('change', newVal, this.findValName(newVal[newVal.length - 1]))
|
|
|
},
|
|
|
// value(newVal) {
|
|
|
// console.log(newVal, this.findValArr(newVal))
|
|
|
@@ -121,7 +121,6 @@ export default {
|
|
|
this.list = data.data;
|
|
|
this.treeData = this.loopData(this.buildTree(data.data));
|
|
|
|
|
|
- console.log(this.value)
|
|
|
this.cascaderVal = this.findValArr(this.value);
|
|
|
}
|
|
|
})
|