Pārlūkot izejas kodu

检索时出现空数据

zhuliu 1 gadu atpakaļ
vecāks
revīzija
1815bd5bab
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 => {