From 7d1c19cfbe529179dfe6efafb2e3d7f6fcdcbfa9 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Mon, 23 Sep 2024 14:55:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=A4=BE=E5=8C=BA?= =?UTF-8?q?=E7=89=88=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=A4=B4=E9=83=A8=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/stores/modules/user.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/src/stores/modules/user.ts b/ui/src/stores/modules/user.ts index 94f5413cb..aac61f8f2 100644 --- a/ui/src/stores/modules/user.ts +++ b/ui/src/stores/modules/user.ts @@ -5,6 +5,7 @@ import { cloneDeep } from 'lodash' import UserApi from '@/api/user' import ThemeApi from '@/api/theme' import { useElementPlusTheme } from 'use-element-plus-theme' +import { defaultPlatformSetting } from '@/utils/theme' export interface userStateTypes { userType: number // 1 系统操作者 2 对话用户 @@ -90,6 +91,10 @@ const useUserStore = defineStore({ if (this.isEnterprise()) { await this.theme() + } else { + this.themeInfo = { + ...defaultPlatformSetting + } } resolve(ok) })