浏览代码

检索时出现空数据

zhuliu 1 年之前
父节点
当前提交
1815bd5bab
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 => {