Browse Source

检索时出现空数据

zhuliu 1 year ago
parent
commit
1815bd5bab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/model/retrieval/search.vue

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

@@ -183,7 +183,7 @@ export default {
     },
     },
     search() {
     search() {
       this.inner = true
       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 = {}
         var searchValue = {}
         if (this.field.type == 3) {
         if (this.field.type == 3) {
           searchValue = this.field.options.filter(item => {
           searchValue = this.field.options.filter(item => {