From 35e2a3b94dc8696a878e9f45bf76c2e94e6581de Mon Sep 17 00:00:00 2001 From: wangyilin <1454641981@qq.com> Date: Tue, 3 Dec 2024 11:16:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A1=8C=E6=94=BF=E5=8C=BA?= =?UTF-8?q?=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- securityManagement/index.html | 2 +- .../src/components/layout/layout.vue | 8 +- securityManagement/src/views/enterprise.vue | 2 +- securityManagement/src/views/test.vue | 118 +++--------------- 4 files changed, 18 insertions(+), 112 deletions(-) diff --git a/securityManagement/index.html b/securityManagement/index.html index d821b0d..5218809 100644 --- a/securityManagement/index.html +++ b/securityManagement/index.html @@ -6,7 +6,7 @@ - Vite + Vue + TS + 保安后台
diff --git a/securityManagement/src/components/layout/layout.vue b/securityManagement/src/components/layout/layout.vue index 682ed00..f2f3540 100644 --- a/securityManagement/src/components/layout/layout.vue +++ b/securityManagement/src/components/layout/layout.vue @@ -15,14 +15,10 @@ - + - + diff --git a/securityManagement/src/views/enterprise.vue b/securityManagement/src/views/enterprise.vue index cdd702a..f24ed69 100644 --- a/securityManagement/src/views/enterprise.vue +++ b/securityManagement/src/views/enterprise.vue @@ -159,7 +159,7 @@ const transformData = (val:any,tree:any)=>{ } // 可以进行搜索行政区划 2 const filter: ShowSearchType['filter'] = (inputValue, path) => { - return path.some(option => option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1); + return path?.some(option => option.label.toLowerCase().indexOf(inputValue?.toLowerCase()) > -1); }; // 搜索完成时回调 diff --git a/securityManagement/src/views/test.vue b/securityManagement/src/views/test.vue index 7898fe3..2f1c317 100644 --- a/securityManagement/src/views/test.vue +++ b/securityManagement/src/views/test.vue @@ -1,114 +1,24 @@