From 33bde0eaf89582af748451835cdcc4f8f252b9f3 Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Mon, 20 Apr 2026 13:53:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20store=20=E7=9B=AE=E5=BD=95=E6=89=81?= =?UTF-8?q?=E5=B9=B3=E5=8C=96=E9=87=8D=E6=9E=84=E4=B8=BA=20stores=EF=BC=88?= =?UTF-8?q?Pinia=20=E6=8E=A8=E8=8D=90=E7=BB=93=E6=9E=84=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- .../CommandPalette/useCommandPalette.ts | 2 +- src/components/DictSelect/index.vue | 2 +- src/components/DictTag/index.vue | 2 +- src/components/Hamburger/index.vue | 2 +- src/components/LangSelect/index.vue | 2 +- src/components/SizeSelect/index.vue | 2 +- src/components/TenantSwitcher/index.vue | 2 +- src/components/ThemeSwitch/index.vue | 2 +- src/composables/sse/useDictSync.ts | 2 +- src/directives/permission/index.ts | 2 +- src/lang/index.ts | 2 +- src/layouts/MixLayout.vue | 2 +- src/layouts/TopLayout.vue | 2 +- src/layouts/components/LayoutMain.vue | 2 +- src/layouts/components/LayoutNavbar.vue | 2 +- src/layouts/components/LayoutSettings.vue | 2 +- src/layouts/components/LayoutSidebar.vue | 2 +- src/layouts/components/LayoutTagsView.vue | 2 +- src/layouts/components/LayoutToolbar.vue | 4 ++-- src/layouts/useLayout.ts | 2 +- src/main.ts | 2 +- src/router/guards/permission.ts | 4 ++-- src/store/index.ts | 18 ------------------ src/{store/modules => stores}/app.ts | 2 +- src/{store/modules => stores}/dict.ts | 2 +- src/stores/index.ts | 17 +++++++++++++++++ src/{store/modules => stores}/permission.ts | 14 +++++++------- src/{store/modules => stores}/settings.ts | 0 src/{store/modules => stores}/tags-view.ts | 0 src/{store/modules => stores}/tenant.ts | 2 +- src/{store/modules => stores}/user.ts | 8 ++++---- src/utils/auth.ts | 2 +- src/utils/request.ts | 4 ++-- src/views/dashboard/index.vue | 2 +- src/views/demo/curd-single.vue | 2 +- src/views/demo/curd/config/edit.ts | 2 +- src/views/demo/curd/config2/edit.ts | 2 +- src/views/demo/dict-sync.vue | 2 +- .../multi-level/children/children/detail.ts | 2 +- src/views/demo/table-select/index.vue | 2 +- src/views/login/components/Login.vue | 2 +- src/views/profile/index.vue | 2 +- src/views/system/menu/index.vue | 2 +- src/views/system/role/index.vue | 2 +- src/views/system/user/index.vue | 2 +- 46 files changed, 71 insertions(+), 72 deletions(-) delete mode 100644 src/store/index.ts rename src/{store/modules => stores}/app.ts (98%) rename src/{store/modules => stores}/dict.ts (98%) create mode 100644 src/stores/index.ts rename src/{store/modules => stores}/permission.ts (93%) rename src/{store/modules => stores}/settings.ts (100%) rename src/{store/modules => stores}/tags-view.ts (100%) rename src/{store/modules => stores}/tenant.ts (99%) rename src/{store/modules => stores}/user.ts (93%) diff --git a/src/App.vue b/src/App.vue index 3facc76a..4317cd94 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,7 +13,7 @@