From de368c7e9e4066b0357525016aa2eee06eb4b131 Mon Sep 17 00:00:00 2001 From: chansee97 Date: Sat, 13 Apr 2024 12:26:39 +0800 Subject: [PATCH] fix: perfect menu manage --- .env | 2 +- src/components/common/HelpInfo.vue | 16 +++++++ .../{custom => common}/IconSelect/icons.ts | 0 .../{custom => common}/IconSelect/index.vue | 15 ++++-- .../{custom => common}/NovaIcon.vue | 0 .../{custom => common}/Pagination.vue | 0 src/components/custom/SvgIcon.vue | 31 ------------ src/main.ts | 2 +- src/router/routes.static.ts | 2 +- src/typings/route.d.ts | 2 +- .../setting/menu/components/TableModal.vue | 48 ++++++++++++++----- src/views/setting/menu/index.vue | 8 ++-- 12 files changed, 71 insertions(+), 55 deletions(-) create mode 100644 src/components/common/HelpInfo.vue rename src/components/{custom => common}/IconSelect/icons.ts (100%) rename src/components/{custom => common}/IconSelect/index.vue (79%) rename src/components/{custom => common}/NovaIcon.vue (100%) rename src/components/{custom => common}/Pagination.vue (100%) delete mode 100644 src/components/custom/SvgIcon.vue diff --git a/.env b/.env index 77ad0d3..b48df03 100644 --- a/.env +++ b/.env @@ -5,7 +5,7 @@ VITE_APP_NAME=Nova - Admin # 路由模式 VITE_ROUTE_MODE = web # 权限路由模式: static | dynamic -VITE_AUTH_ROUTE_MODE=dynamic +VITE_AUTH_ROUTE_MODE=static # 设置登陆后跳转地址 VITE_HOME_PATH = /dashboard/workbench diff --git a/src/components/common/HelpInfo.vue b/src/components/common/HelpInfo.vue new file mode 100644 index 0000000..33e72fd --- /dev/null +++ b/src/components/common/HelpInfo.vue @@ -0,0 +1,16 @@ + + + diff --git a/src/components/custom/IconSelect/icons.ts b/src/components/common/IconSelect/icons.ts similarity index 100% rename from src/components/custom/IconSelect/icons.ts rename to src/components/common/IconSelect/icons.ts diff --git a/src/components/custom/IconSelect/index.vue b/src/components/common/IconSelect/index.vue similarity index 79% rename from src/components/custom/IconSelect/index.vue rename to src/components/common/IconSelect/index.vue index e51a970..7ba2c2b 100644 --- a/src/components/custom/IconSelect/index.vue +++ b/src/components/common/IconSelect/index.vue @@ -1,6 +1,13 @@