diff --git a/src/App.vue b/src/App.vue index 99e2e2f..0eb0944 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,13 +9,12 @@ const appStore = useAppStore() - + + + + diff --git a/src/layouts/components/common/Watermark.vue b/src/components/common/Watermark.vue similarity index 100% rename from src/layouts/components/common/Watermark.vue rename to src/components/common/Watermark.vue diff --git a/src/components/common/appLoading.vue b/src/components/common/appLoading.vue index 88b04b7..acdf796 100644 --- a/src/components/common/appLoading.vue +++ b/src/components/common/appLoading.vue @@ -1,5 +1,4 @@ @@ -30,9 +29,6 @@ const name = import.meta.env.VITE_APP_NAME - - {{ name }} - diff --git a/src/layouts/BasicLayout/index.vue b/src/layouts/BasicLayout/index.vue index f57c848..4a25bf0 100644 --- a/src/layouts/BasicLayout/index.vue +++ b/src/layouts/BasicLayout/index.vue @@ -13,7 +13,6 @@ import { Setting, TabBar, UserCenter, - Watermark, } from '../components' import { useAppStore, useRouteStore } from '@/store' @@ -28,27 +27,28 @@ appStore.setPrimaryColor() - + + + - + @@ -64,45 +64,36 @@ appStore.setPrimaryColor() + - + + + + + + + + + + + + - - - - - - - - - - - - - + {{ appStore.footerText }} + - diff --git a/src/layouts/components/common/HeaderButton.vue b/src/layouts/components/common/HeaderButton.vue index 0773172..0299892 100644 --- a/src/layouts/components/common/HeaderButton.vue +++ b/src/layouts/components/common/HeaderButton.vue @@ -18,7 +18,7 @@ diff --git a/src/layouts/components/header/Setting.vue b/src/layouts/components/header/Setting.vue index b1a7213..602ee7d 100644 --- a/src/layouts/components/header/Setting.vue +++ b/src/layouts/components/header/Setting.vue @@ -88,11 +88,11 @@ function resetSetting() { 色弱模式 - + 灰色模式 - + 主题色 @@ -106,14 +106,6 @@ function resetSetting() { 切换动效 - - 侧边栏反转色 - - - - 头部反转色 - - 界面显示 @@ -125,9 +117,13 @@ function resetSetting() { - 多页签 + 多页签显示 + + 底部标签显示 + + 面包屑 @@ -136,10 +132,6 @@ function resetSetting() { 面包屑图标 - - 固定头部和多页签 - - 水印 diff --git a/src/layouts/components/index.ts b/src/layouts/components/index.ts index b3ff631..5d25f75 100644 --- a/src/layouts/components/index.ts +++ b/src/layouts/components/index.ts @@ -19,7 +19,6 @@ import TabBar from './tab/TabBar.vue' /* 其他组件 */ // 返回顶部 import BackTop from './common/BackTop.vue' -import Watermark from './common/Watermark.vue' export { Breadcrumb, @@ -35,5 +34,4 @@ export { Reload, TabBar, BackTop, - Watermark, } diff --git a/src/layouts/components/sider/Menu.vue b/src/layouts/components/sider/Menu.vue index 54abe03..abf6b22 100644 --- a/src/layouts/components/sider/Menu.vue +++ b/src/layouts/components/sider/Menu.vue @@ -9,9 +9,8 @@ const routesStore = useRouteStore() diff --git a/src/store/app/index.ts b/src/store/app/index.ts index 5af9842..6891cb1 100644 --- a/src/store/app/index.ts +++ b/src/store/app/index.ts @@ -6,6 +6,7 @@ import themeConfig from './theme.json' type TransitionAnimation = '' | 'fade-slide' | 'fade-bottom' | 'fade-scale' | 'zoom-fade' | 'zoom-out' interface AppStatus { + footerText: string theme: GlobalThemeOverrides primaryColor: string collapsed: boolean @@ -16,12 +17,10 @@ interface AppStatus { loadFlag: boolean showLogo: boolean showTabs: boolean + showFooter: boolean showProgress: boolean showBreadcrumb: boolean showBreadcrumbIcon: boolean - fixedHeader: boolean - invertedSider: boolean - invertedHeader: boolean showWatermark: boolean transitionAnimation: TransitionAnimation } @@ -40,6 +39,7 @@ const isDark = useDark({ export const useAppStore = defineStore('app-store', { state: (): AppStatus => { return { + footerText: 'Copyright © 2024 chansee97', theme: themeConfig, primaryColor: initPrimaryColor, collapsed: false, @@ -50,12 +50,10 @@ export const useAppStore = defineStore('app-store', { loadFlag: true, showLogo: true, showTabs: true, + showFooter: true, showProgress: true, showBreadcrumb: true, showBreadcrumbIcon: true, - fixedHeader: false, - invertedSider: false, - invertedHeader: false, showWatermark: false, transitionAnimation: 'fade-slide', } @@ -73,11 +71,10 @@ export const useAppStore = defineStore('app-store', { this.loadFlag = true this.showLogo = true this.showTabs = true + this.showLogo = true + this.showFooter = true this.showBreadcrumb = true this.showBreadcrumbIcon = true - this.fixedHeader = false - this.invertedSider = false - this.invertedHeader = false this.showWatermark = false this.transitionAnimation = 'fade-slide' @@ -172,13 +169,13 @@ export const useAppStore = defineStore('app-store', { }, /* 切换色弱模式 */ toggleColorWeak() { - docEle.classList.toggle('color-weak') - this.colorWeak = docEle.classList.contains('color-weak') + docEle.value.classList.toggle('color-weak') + this.colorWeak = docEle.value.classList.contains('color-weak') }, /* 切换灰色模式 */ toggleGrayMode() { - docEle.classList.toggle('gray-mode') - this.grayMode = docEle.classList.contains('gray-mode') + docEle.value.classList.toggle('gray-mode') + this.grayMode = docEle.value.classList.contains('gray-mode') }, }, persist: { diff --git a/src/views/docments/vite/index.vue b/src/views/docments/vite/index.vue index 84b2c04..827d0cc 100644 --- a/src/views/docments/vite/index.vue +++ b/src/views/docments/vite/index.vue @@ -1,9 +1,7 @@ - - - + diff --git a/src/views/docments/vue/index.vue b/src/views/docments/vue/index.vue index 98ad5e4..f86a04a 100644 --- a/src/views/docments/vue/index.vue +++ b/src/views/docments/vue/index.vue @@ -1,9 +1,7 @@ - - - + diff --git a/src/views/plugin/charts/antV/index.vue b/src/views/plugin/charts/antV/index.vue deleted file mode 100644 index c4f527b..0000000 --- a/src/views/plugin/charts/antV/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - antV - - - diff --git a/src/views/plugin/charts/echarts/index.vue b/src/views/plugin/echarts/index.vue similarity index 100% rename from src/views/plugin/charts/echarts/index.vue rename to src/views/plugin/echarts/index.vue diff --git a/src/views/setting/system/index.vue b/src/views/setting/system/index.vue deleted file mode 100644 index 53b89a0..0000000 --- a/src/views/setting/system/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - 系统设置 - - - diff --git a/src/views/test/test2/index.vue b/src/views/test/test2/index.vue index d2953e3..19d575a 100644 --- a/src/views/test/test2/index.vue +++ b/src/views/test/test2/index.vue @@ -3,12 +3,12 @@ const router = useRouter() - + 这个页面包含了一个不在侧边菜单的详情页面 跳转详情子页 - +