From a2a615d18d4bc34c1368e0b5f133702fca7db448 Mon Sep 17 00:00:00 2001 From: dzq Date: Wed, 18 Jun 2025 16:57:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=9D=83=E9=99=90=E6=8E=A7=E5=88=B6):=20?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E6=8C=89=E9=92=AE=E7=BA=A7=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加按钮权限控制功能,包括: 1. 新增权限存储模块和权限获取API 2. 在App.vue初始化时获取权限 3. 在多个页面组件中添加权限检查逻辑 4. 移除角色管理页面中不必要的分类显示 5. 在店铺表单中添加二维码和链接复制功能 --- src/App.vue | 7 +++- src/api/common/login.ts | 7 +++- src/store/modules/btnPermission.ts | 31 ++++++++++++++++++ src/views/cabinet/shop/shop-form-modal.vue | 32 +++++++++++++++---- .../cabinet/smart-cabinet-card/detail.vue | 21 +++++++----- .../cabinet/smart-cabinet-card/index.vue | 4 ++- src/views/shop/goods/detail.vue | 5 ++- src/views/shop/goods/index.vue | 4 ++- src/views/system/role/index.vue | 2 +- 9 files changed, 93 insertions(+), 20 deletions(-) create mode 100644 src/store/modules/btnPermission.ts diff --git a/src/App.vue b/src/App.vue index db21e42..ad39175 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,11 +1,16 @@