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 @@