Kaynağa Gözat

[Feat 0000] 为兼容性还原部分主题相关的代码

houzekong 3 ay önce
ebeveyn
işleme
1e0fa96a52

+ 1 - 1
src/layouts/default/layout.data.ts

@@ -12,7 +12,7 @@ export const ThemeModel = {
     'vent-btn-primary-border-color': '#5675c96b',
   },
   theme6_0: {
-    // 'vent-base-color': '#09172c',
+    'vent-base-color': '#09172c',
     'vent-header-bg-color': 'linear-gradient(#005177, #0a344c)',
     'vent-btn-primary-hover-color': '#389bd9',
     'vent-btn-primary-focus-color': '#1c638a99',

+ 5 - 5
src/utils/env.ts

@@ -97,11 +97,11 @@ export function isProdMode(): boolean {
 export function getHomePath(key): string {
   let homePath = '/micro-vent-3dModal/dashboard/analysis';
   switch (key) {
-    // case 'styleOne':
-    //   // 显示6.0
-    //   homePath = '/micro-vent-3dModal/dashboard/analysis';
-    //   switchTheme(ThemeModel.theme6_0);
-    //   break;
+    case 'styleOne':
+      // 显示6.0
+      homePath = '/micro-vent-3dModal/dashboard/analysis';
+      switchTheme(ThemeModel.theme6_0);
+      break;
     case 'styleTwo':
       // 显示5.5
       homePath = '/micro-vent-3dModal/modelchannel/model3D/home';

+ 16 - 4
src/views/vent/sys/setting/setting.data.ts

@@ -61,15 +61,27 @@ export const formSchema: FormSchema[] = [
       options: [
         {
           label: '6.0',
+          value: 'styleOne',
+        },
+        {
+          label: '5.5',
+          value: 'styleTwo',
+        },
+        {
+          label: '默认(开发中)',
           value: ThemeEnum.VENT1,
         },
         {
-          label: '6.0深蓝色(开发中)',
-          value: ThemeEnum.DEEPBLUE,
+          label: '明亮(开发中)',
+          value: ThemeEnum.LIGHT,
         },
         {
-          label: '5.5',
-          value: 'styleTwo',
+          label: '深色(开发中)',
+          value: ThemeEnum.DARK,
+        },
+        {
+          label: '深蓝(开发中)',
+          value: ThemeEnum.DEEPBLUE,
         },
       ],
     },