diff --git a/ui/src/layout/components/top-bar/index.vue b/ui/src/layout/components/top-bar/index.vue index 5d5060e81..d18d1cc55 100644 --- a/ui/src/layout/components/top-bar/index.vue +++ b/ui/src/layout/components/top-bar/index.vue @@ -20,28 +20,43 @@ 购买专业版 - + - + - + diff --git a/ui/src/stores/modules/user.ts b/ui/src/stores/modules/user.ts index 0fe71ddf4..94f5413cb 100644 --- a/ui/src/stores/modules/user.ts +++ b/ui/src/stores/modules/user.ts @@ -1,7 +1,7 @@ import { defineStore } from 'pinia' import { type Ref } from 'vue' import type { User } from '@/api/type/user' - +import { cloneDeep } from 'lodash' import UserApi from '@/api/user' import ThemeApi from '@/api/theme' import { useElementPlusTheme } from 'use-element-plus-theme' @@ -38,7 +38,7 @@ const useUserStore = defineStore({ setTheme(data: any) { const { changeTheme } = useElementPlusTheme(this.themeInfo?.theme) changeTheme(data?.['theme']) - this.themeInfo = data + this.themeInfo = cloneDeep(data) }, isExpire() { return this.isXPack && !this.XPACK_LICENSE_IS_VALID diff --git a/ui/src/utils/theme.ts b/ui/src/utils/theme.ts index 15b1311c5..88e77916e 100644 --- a/ui/src/utils/theme.ts +++ b/ui/src/utils/theme.ts @@ -37,3 +37,12 @@ export const defaultSetting = { title: 'MaxKB', slogan: '欢迎使用 MaxKB 智能知识库' } + +export const defaultPlatformSetting = { + showUserManual: true, + userManualUrl: 'https://maxkb.cn/docs/', + showForum: true, + forumUrl: 'https://bbs.fit2cloud.com/c/mk/11', + showProject: true, + projectUrl: 'https://github.com/1Panel-dev/MaxKB' +} diff --git a/ui/src/views/theme/index.vue b/ui/src/views/theme/index.vue index 621d89664..9342e3564 100644 --- a/ui/src/views/theme/index.vue +++ b/ui/src/views/theme/index.vue @@ -25,7 +25,7 @@
页面预览
- 恢复默认 + 恢复默认
@@ -133,6 +133,85 @@
+
+
平台设置
+ +
+
页面预览
+ 恢复默认 +
+ +
+ + +
+
+
+
+ +
+
+
+ + + +
+
+
+
+ +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+
+
+
+ 默认为 MaxKB 登录界面,支持自定义设置 +
+
+
@@ -143,12 +222,12 @@