From 9cd0f9968afaa9ed8a5cbc92c47fef11e7aea6b0 Mon Sep 17 00:00:00 2001 From: From-wh Date: Tue, 18 Apr 2023 14:48:40 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/admin/src/libs/util.js | 2 +- .../order/orderList/components/tableList.vue | 19 ++++++++++++------- .../src/pages/system/codeGeneration/list.vue | 2 +- template/admin/src/pages/user/list/index.vue | 13 +++++++++++-- 4 files changed, 25 insertions(+), 11 deletions(-) diff --git a/template/admin/src/libs/util.js b/template/admin/src/libs/util.js index 08b97936d..f19d208e4 100644 --- a/template/admin/src/libs/util.js +++ b/template/admin/src/libs/util.js @@ -163,7 +163,7 @@ export const getHomeRoute = (routers, homeName = 'home') => { export const getNewTagList = (list, newRoute) => { const { name, path, meta } = newRoute; let newList = [...list]; - if (newList.findIndex((item) => item.name === name) >= 0) return newList; + if (newList.findIndex((item) => item.path === path) >= 0) return newList; else newList.push({ name, path, meta }); return newList; }; diff --git a/template/admin/src/pages/order/orderList/components/tableList.vue b/template/admin/src/pages/order/orderList/components/tableList.vue index 6ce8eedac..e8739ccf7 100644 --- a/template/admin/src/pages/order/orderList/components/tableList.vue +++ b/template/admin/src/pages/order/orderList/components/tableList.vue @@ -63,13 +63,14 @@