fix ذشزنلقخعدی
This commit is contained in:
+7
-6
@@ -99,7 +99,7 @@ import {LoadingOutlined} from '@ant-design/icons-vue'
|
||||
import img_bottomGradiant from '@/views/login/assets/img/gr_bottom_white.svg'
|
||||
import BasicButton from '@/components/BasicPacks/BasicButton.vue'
|
||||
import {useConfigStore} from "@/store/configStore";
|
||||
import {getProjectFontFamily, getProjectSplashBackground, getProjectSplashLogo, getProjectBrandRed, hasCustomLoginLogoLayout, isBoursecuProject, resetAppSurfaceBackground} from "@/utils/config";
|
||||
import {getProjectFontFamily, getProjectSplashBackground, getProjectSplashLogo, getProjectBrandRed, getProjectPrimaryColor, hasCustomLoginLogoLayout, isBoursecuProject, resetAppSurfaceBackground} from "@/utils/config";
|
||||
import {ConfigProvider as AConfigProvider} from 'ant-design-vue'
|
||||
import BasicIcon from "@/components/BasicPacks/BasicIcon.vue";
|
||||
import { useApplyDesktopLayoutClass, useDesktopBreakpoint } from '@/layouts/composables/useAppLayout'
|
||||
@@ -211,16 +211,17 @@ function handleSupportPointerUp(event: PointerEvent) {
|
||||
}
|
||||
|
||||
const antTheme = computed(() => {
|
||||
if (!config.config?.color) return null
|
||||
const primaryColor = getProjectPrimaryColor()
|
||||
if (!primaryColor) return null
|
||||
|
||||
const brandRed = getProjectBrandRed()
|
||||
|
||||
return {
|
||||
token: {
|
||||
colorPrimary: config.config.color,
|
||||
colorLink: config.config.color,
|
||||
colorLinkActive: config.config.color,
|
||||
colorLinkHover: config.config.color,
|
||||
colorPrimary: primaryColor,
|
||||
colorLink: primaryColor,
|
||||
colorLinkActive: primaryColor,
|
||||
colorLinkHover: primaryColor,
|
||||
fontFamily: getProjectFontFamily(),
|
||||
...(brandRed ? {
|
||||
colorError: brandRed,
|
||||
|
||||
Reference in New Issue
Block a user