|
@@ -47,6 +47,7 @@ export default {
|
|
|
},
|
|
|
async mounted() {
|
|
|
// this.getList();
|
|
|
+ this.getOptions()
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
@@ -62,7 +63,6 @@ export default {
|
|
|
this.list.length <= this.constant
|
|
|
? this.list
|
|
|
: slice(this.list, 0, this.constant);
|
|
|
- // this.getOptions();
|
|
|
},
|
|
|
remoteMethod(query) {
|
|
|
// throttle
|
|
@@ -112,11 +112,11 @@ export default {
|
|
|
handler(val) {
|
|
|
if (this.multiple) {
|
|
|
if (val?.length > 0 && this.isFirst) {
|
|
|
- this.getOptions();
|
|
|
+ this.getOptions('')
|
|
|
}
|
|
|
} else {
|
|
|
if (val && this.isFirst) {
|
|
|
- this.getOptions();
|
|
|
+ this.getOptions('')
|
|
|
}
|
|
|
}
|
|
|
},
|