wjx 1 月之前
父节点
当前提交
05eca18c2f
共有 1 个文件被更改,包括 4 次插入9 次删除
  1. 4 9
      src/app.tsx

+ 4 - 9
src/app.tsx

@@ -229,7 +229,7 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
         window.open(`https://mp.zanxiangnet.com/#/user/login?token=${localStorage.getItem('Admin-Token')}`, '_blank')
         history.back() // 返回上一页
         return
-      } else if (location?.pathname === '/corpChat') { 
+      } else if (location?.pathname === '/corpChat') {
         window.open(`https://corp.zanxiangnet.com/#/login?token=${localStorage.getItem('Admin-Token')}`, '_blank')
         history.back() // 返回上一页
         return
@@ -292,18 +292,13 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
       if (initialState?.loading) return <PageLoading />;
       return (<ConfigProvider
         componentSize='middle'
-        theme={{
-          token: {
-          },
+        theme={initialState?.settings?.navTheme === 'realDark' ? undefined : {
           components: {
-            Input: {
-
-            },
             Table: {
               colorBorderSecondary: '#e0e0e0',
+              headerBg: '#F5F5F5'
             }
-          },
-          // algorithm: [compactAlgorithm]
+          }
         }}
       >
         <Watermark