From f87e5ff020d29cf840f309a923d65a171aadff4c Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Tue, 8 Jul 2025 16:55:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BA=A7=E5=93=81=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/unplugin/auto-import.ts | 2 +- src/App.vue | 13 ++-- src/api/index.ts | 9 ++- src/components/_base/menu/index.vue | 3 +- src/components/_base/navbar/index.vue | 1 - src/permission/permission.ts | 13 ++++ src/router/guard/userLoginInfo.ts | 16 ++++- src/router/index.ts | 26 ++++---- src/router/routes/base.ts | 45 +++++++------ src/router/routes/index.ts | 4 +- src/router/routes/modules/dataEngine.ts | 8 ++- src/router/routes/modules/management.ts | 5 +- .../routes/modules/propertyMarketing.ts | 18 +++-- src/router/typeings.d.ts | 1 + src/stores/modules/enterprise/index.ts | 35 ++++------ src/stores/modules/side-bar/constants.ts | 11 ++++ src/stores/modules/side-bar/index.ts | 13 ++-- src/stores/modules/user/index.ts | 66 +++++++++++++++---- src/utils/stroage.ts | 47 +++++++++++++ src/utils/user.ts | 17 ++++- src/views/components/login/index.vue | 2 - .../components/management/account/index.vue | 2 +- .../management/enterprise/index.vue | 2 +- .../components/workplace/modules/product.vue | 2 +- .../media-account/account-manage/index.vue | 1 - vite.config.ts | 3 +- 26 files changed, 263 insertions(+), 102 deletions(-) create mode 100644 src/permission/permission.ts create mode 100644 src/utils/stroage.ts diff --git a/config/unplugin/auto-import.ts b/config/unplugin/auto-import.ts index 1036483..c49e54d 100644 --- a/config/unplugin/auto-import.ts +++ b/config/unplugin/auto-import.ts @@ -21,7 +21,7 @@ export function configAutoImport() { '@vueuse/core', { dayjs: [['default', 'dayjs']], - 'lodash-es': ['cloneDeep', 'omit', 'pick', 'union', 'isNumber'], + 'lodash-es': ['cloneDeep', 'omit', 'pick', 'union', 'isNumber', 'uniqBy'], '@/hooks': ['useModal'], }, ], diff --git a/src/App.vue b/src/App.vue index a360a3f..435b03e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,6 +8,7 @@