Commit 899a3783b40669fdab74dc3ec9ffc4a04d683e11

Authored by xp.Huang
2 parents f7d66b4e 63a3f1e1

Merge branch 'fix/DEFECT-2253' into 'main_dev'

fix: 云端场景联动组织搜索未生效

See merge request yunteng/thingskit-front!1396
@@ -71,10 +71,10 @@ @@ -71,10 +71,10 @@
71 if (!value) { 71 if (!value) {
72 return true; 72 return true;
73 } 73 }
74 - let { name } = props || {}; 74 + let { title } = props || {};
75 value = value.toLowerCase(); 75 value = value.toLowerCase();
76 - name = name.toLowerCase();  
77 - return name.includes(value); 76 + title = title.toLowerCase();
  77 + return title.includes(value);
78 } 78 }
79 79
80 async function fetch() { 80 async function fetch() {
@@ -7,10 +7,10 @@ export const createOrganizationSearch = () => { @@ -7,10 +7,10 @@ export const createOrganizationSearch = () => {
7 if (!value) { 7 if (!value) {
8 return true; 8 return true;
9 } 9 }
10 - let { name } = props || {}; 10 + let { title } = props || {};
11 value = value?.toLowerCase(); 11 value = value?.toLowerCase();
12 - name = name?.toLowerCase();  
13 - return name.includes(value); 12 + title = title?.toLowerCase();
  13 + return title.includes(value);
14 }, 14 },
15 }; 15 };
16 }; 16 };