Quellcode durchsuchen

检索时出现空数据

zhuliu vor 1 Jahr
Ursprung
Commit
1815bd5bab
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/utils/model/retrieval/search.vue

+ 1 - 1
src/utils/model/retrieval/search.vue

@@ -183,7 +183,7 @@ export default {
     },
     search() {
       this.inner = true
-      if (this.value || this.value.length > 0) {
+      if ((typeof this.value == 'string' && this.value) || (typeof this.value == 'object' && this.value.length > 0)) {
         var searchValue = {}
         if (this.field.type == 3) {
           searchValue = this.field.options.filter(item => {