diff --git a/ruoyi-ui/.env.development b/ruoyi-ui/.env.development index 302ecd1..4a29a35 100644 --- a/ruoyi-ui/.env.development +++ b/ruoyi-ui/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = FORTUCKY WCS SYSTEM # 开发环境配置 ENV = 'development' diff --git a/ruoyi-ui/.env.production b/ruoyi-ui/.env.production index b4893b0..242f36b 100644 --- a/ruoyi-ui/.env.production +++ b/ruoyi-ui/.env.production @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = FORTUCKY WCS SYSTEM # 生产环境配置 ENV = 'production' diff --git a/ruoyi-ui/.env.staging b/ruoyi-ui/.env.staging index 209b64e..fb658c0 100644 --- a/ruoyi-ui/.env.staging +++ b/ruoyi-ui/.env.staging @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = FORTUCKY WCS SYSTEM BABEL_ENV = production diff --git a/ruoyi-ui/src/App.vue b/ruoyi-ui/src/App.vue index 12df51d..639556e 100644 --- a/ruoyi-ui/src/App.vue +++ b/ruoyi-ui/src/App.vue @@ -10,7 +10,20 @@ import ThemePicker from "@/components/ThemePicker" export default { name: "App", - components: { ThemePicker } + components: { ThemePicker }, + computed: { + sideTheme() { + return this.$store.state.settings.sideTheme + } + }, + watch: { + sideTheme: { + immediate: true, + handler(val) { + document.documentElement.setAttribute('data-theme', val) + } + } + } } diff --git a/ruoyi-ui/src/components/Hamburger/index.vue b/ruoyi-ui/src/components/Hamburger/index.vue index 368b002..31d1863 100644 --- a/ruoyi-ui/src/components/Hamburger/index.vue +++ b/ruoyi-ui/src/components/Hamburger/index.vue @@ -30,12 +30,17 @@ export default { } - diff --git a/ruoyi-ui/src/layout/components/Sidebar/Logo.vue b/ruoyi-ui/src/layout/components/Sidebar/Logo.vue index 4ec53eb..6e7adb8 100644 --- a/ruoyi-ui/src/layout/components/Sidebar/Logo.vue +++ b/ruoyi-ui/src/layout/components/Sidebar/Logo.vue @@ -1,13 +1,15 @@