From 4751ef8cb97705cd85b29adc81e3a542d16a4371 Mon Sep 17 00:00:00 2001 From: PDieE <23275429@qq.com> Date: Tue, 6 Sep 2022 13:02:43 +0800 Subject: [PATCH 1/6] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=BD=93=E6=89=93?= =?UTF-8?q?=E5=BC=80=E5=A4=9A=E4=B8=AA=E6=A0=87=E7=AD=BE=E5=90=8E=20?= =?UTF-8?q?=E9=80=80=E5=87=BA=E4=BC=9A=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#293)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 示例增加 suspense 代码解决打开多个标签后退出会报错的问题 * fix: 注释 --- src/layouts/components/Content.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/layouts/components/Content.vue b/src/layouts/components/Content.vue index 615b023..eff4439 100644 --- a/src/layouts/components/Content.vue +++ b/src/layouts/components/Content.vue @@ -12,8 +12,11 @@ import { computed, ComputedRef } from 'vue'; import { useTabsRouterStore } from '@/store'; +// 标签属于实验性功能,请谨慎使用 // 如果存在需解决/page/1=> /page/2 刷新数据问题 请修改代码 使用activeRouteFullPath 作为key -// +// +// +// // import { useRouter } from 'vue-router'; // const activeRouteFullPath = computed(() => { From 2f8444734358b1d2109754fbc3e4c5d98ea34498 Mon Sep 17 00:00:00 2001 From: zengqiu Date: Thu, 8 Sep 2022 01:05:20 +0800 Subject: [PATCH 2/6] =?UTF-8?q?fix(footer):=20=E4=BF=AE=E5=A4=8D=E5=BA=95?= =?UTF-8?q?=E9=83=A8=E7=89=88=E6=9D=83=E4=BF=A1=E6=81=AF=E5=9E=82=E7=9B=B4?= =?UTF-8?q?=E5=B1=85=E4=B8=AD=E9=97=AE=E9=A2=98=20(#299)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/dashboard/base/index.vue | 2 +- src/style/layout.less | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/dashboard/base/index.vue b/src/pages/dashboard/base/index.vue index 4996fdf..89bc085 100644 --- a/src/pages/dashboard/base/index.vue +++ b/src/pages/dashboard/base/index.vue @@ -25,7 +25,7 @@ import OutputOverview from './components/OutputOverview.vue'; diff --git a/src/style/layout.less b/src/style/layout.less index fd0f838..e523261 100644 --- a/src/style/layout.less +++ b/src/style/layout.less @@ -108,7 +108,7 @@ &-footer-layout { padding: 0; - margin-bottom: @spacer-2; + margin-bottom: @spacer-3; } // slideBar From 3e2fab1e3f7a422181a71b6aedc3f13a3455de9a Mon Sep 17 00:00:00 2001 From: zengqiu Date: Thu, 8 Sep 2022 01:12:09 +0800 Subject: [PATCH 3/6] =?UTF-8?q?fix(breadcrumb):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=9D=A2=E5=8C=85=E5=B1=91=E5=AF=BC=E8=88=AA=E5=9E=82=E7=9B=B4?= =?UTF-8?q?=E5=B1=85=E4=B8=AD=E9=97=AE=E9=A2=98=20(#298)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/components/Breadcrumb.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/components/Breadcrumb.vue b/src/layouts/components/Breadcrumb.vue index ff347ff..74ce022 100644 --- a/src/layouts/components/Breadcrumb.vue +++ b/src/layouts/components/Breadcrumb.vue @@ -34,6 +34,6 @@ const crumbs = computed(() => { From d502c2e89c7195a733512a7f3ca2ecabdab907f1 Mon Sep 17 00:00:00 2001 From: PDieE <23275429@qq.com> Date: Thu, 8 Sep 2022 08:52:01 +0800 Subject: [PATCH 4/6] =?UTF-8?q?feat(=E6=8C=81=E4=B9=85=E5=8C=96):=20?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=8F=92=E4=BB=B6=E5=B0=86store=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=8C=81=E4=B9=85=E5=8C=96=EF=BC=88=E9=99=A4=20permis?= =?UTF-8?q?sion=EF=BC=89=20(#291)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 通知支持持久化 * feat: setting支持持久化 * feat: tabs-router支持持久化 * feat: user支持持久化 fix: 修复 user 和 permission 未正确初始化的问题 * feat: 使用持久化插件将store持久化 #278 * feat: rebase * feat: rebase * feat: rebase * Update src/store/modules/setting.ts Co-authored-by: 悠静萝莉 * Update src/store/index.ts Co-authored-by: 悠静萝莉 * Update src/layouts/setting.vue Co-authored-by: 悠静萝莉 Co-authored-by: 悠静萝莉 --- package.json | 1 + src/App.vue | 7 +------ src/layouts/index.vue | 20 +------------------- src/layouts/setting.vue | 12 +++++++++++- src/permission.ts | 12 +++++++----- src/store/index.ts | 2 ++ src/store/modules/notification.ts | 1 + src/store/modules/setting.ts | 4 ++++ src/store/modules/tabs-router.ts | 1 + src/store/modules/user.ts | 8 +++++++- 10 files changed, 36 insertions(+), 32 deletions(-) diff --git a/package.json b/package.json index 6b38114..ea54b6a 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "lodash": "^4.17.21", "nprogress": "^0.2.0", "pinia": "^2.0.11", + "pinia-plugin-persistedstate": "^2.1.1", "qrcode.vue": "^3.2.2", "qs": "^6.10.5", "tdesign-icons-vue-next": "^0.1.1", diff --git a/src/App.vue b/src/App.vue index 44f6fc9..18cd85d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,8 +2,7 @@