|
@@ -13,7 +13,9 @@ import type { ICurrentWorkspace, LangGeniusVersionResponse, UserProfileResponse
|
|
|
import MaintenanceNotice from '@/app/components/header/maintenance-notice'
|
|
|
import type { SystemFeatures } from '@/types/feature'
|
|
|
import { defaultSystemFeatures } from '@/types/feature'
|
|
|
+import style from './page.module.css'
|
|
|
|
|
|
+import cn from '@/utils/classnames'
|
|
|
export type AppContextValue = {
|
|
|
theme: Theme
|
|
|
setTheme: (theme: Theme) => void
|
|
@@ -140,6 +142,7 @@ export const AppContextProvider: FC<AppContextProviderProps> = ({ children }) =>
|
|
|
return <Loading type='app' />
|
|
|
|
|
|
return (
|
|
|
+ // 首页页面背景
|
|
|
<AppContext.Provider value={{
|
|
|
theme,
|
|
|
setTheme: handleSetTheme,
|
|
@@ -158,9 +161,9 @@ export const AppContextProvider: FC<AppContextProviderProps> = ({ children }) =>
|
|
|
isCurrentWorkspaceDatasetOperator,
|
|
|
mutateCurrentWorkspace,
|
|
|
}}>
|
|
|
- <div className='flex flex-col h-full overflow-y-auto'>
|
|
|
+ <div className={cn('flex flex-col h-full overflow-y-auto',style.background)}>
|
|
|
{globalThis.document?.body?.getAttribute('data-public-maintenance-notice') && <MaintenanceNotice />}
|
|
|
- <div ref={pageContainerRef} className='grow relative flex flex-col overflow-y-auto overflow-x-hidden bg-background-body'>
|
|
|
+ <div ref={pageContainerRef} className='grow relative flex flex-col overflow-y-auto overflow-x-hidden'>
|
|
|
{children}
|
|
|
</div>
|
|
|
</div>
|