From ab6b34081226229455124102daeb51c2359564cd Mon Sep 17 00:00:00 2001 From: CatWithFish <72800755+Muyu-art@users.noreply.github.com> Date: Mon, 2 Sep 2024 16:50:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20vue=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E4=B8=BB=E9=A2=98&=E6=B7=BB=E5=8A=A0=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E4=BF=AE=E6=94=B9data.permission=20(#195)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: vue添加角色修改data.permission * fix: vue默认主题改为smb主题 * fix: vue主题补充useTheme --- .../toolkits/pro/template/tinyvue/src/App.vue | 4 ++ .../tinyvue/src/assets/style/menu.less | 7 +-- .../tinyvue/src/components/theme/index.vue | 35 +++++++------- .../pro/template/tinyvue/src/env.d.ts | 1 - .../template/tinyvue/src/hooks/useTheme.ts | 46 +++++++++++++++++++ .../tinyvue/src/layout/default-layout.vue | 9 ++-- .../tinyvue/src/store/modules/app/index.ts | 45 ++++++++++++++++-- .../views/role/info/components/info-tab.vue | 2 +- 8 files changed, 116 insertions(+), 33 deletions(-) create mode 100644 packages/toolkits/pro/template/tinyvue/src/hooks/useTheme.ts diff --git a/packages/toolkits/pro/template/tinyvue/src/App.vue b/packages/toolkits/pro/template/tinyvue/src/App.vue index 3edcf6c8..201e0dab 100644 --- a/packages/toolkits/pro/template/tinyvue/src/App.vue +++ b/packages/toolkits/pro/template/tinyvue/src/App.vue @@ -9,8 +9,12 @@ import { provide } from 'vue'; import * as echarts from 'echarts'; import GlobalSetting from '@/components/global-setting/index.vue'; + import TinyThemeTool from '@opentiny/vue-theme/theme-tool'; + import { useTheme } from './hooks/useTheme'; provide('echarts', echarts); + const theme = new TinyThemeTool(); + useTheme(theme);