Sfoglia il codice sorgente

提供千海金客户 清除 白色主题

huangbin 4 anni fa
parent
commit
e0238004f0

+ 1 - 1
public/config/app.config.json

@@ -1,3 +1,3 @@
 {
-    "apiUrl": "http://103.40.249.123:28280/cfg?key=mtp_20 "
+    "apiUrl":"http://218.17.158.45:21001/cfg?key=test_136"
 }

+ 9 - 8
src/common/config/theme.ts

@@ -1,6 +1,7 @@
 import { localStorageUtil } from '@/utils/storage';
 import { ref } from "vue";
 import { initData } from "../methods";
+import { isOemByEnum, OemType } from './projectName';
 
 // 主题色枚举
 export enum ThemeEnum {
@@ -32,15 +33,15 @@ export function setTheme(value: ThemeEnum) {
  */
 export function initTheme() {
     initData(() => {
-        const theme = localStorageUtil.getItem('theme')
-        if (theme) {
-            changeTheme(theme)
+        if (isOemByEnum(OemType.wrspot)) { // 云融 项目 主题缓存
+            const theme = localStorageUtil.getItem('theme')
+            if (theme) {
+                changeTheme(theme)
+            } else {
+                changeTheme(ThemeEnum.dark)
+            }
         } else {
-            // if (isOemByEnum(OemType.wrspot)) {
-            //     changeTheme(ThemeEnum.light)
-            // } else {
-            //     changeTheme(ThemeEnum.dark)
-            // }
+            localStorageUtil.removeItem('theme')
             changeTheme(ThemeEnum.dark)
         }
     })

+ 5 - 5
src/services/request/serviceURL.ts

@@ -82,10 +82,10 @@ export const setServiceURL = (config: URL): void => {
     // console.log('URL', config);
     //外网环境(175),外包同事使用
     serviceURL = config;
-    // if (process.env.NODE_ENV === 'development') {
-    //     serviceURL.goCommonSearchUrl = 'http://218.17.158.45:21001/api';
-    //     serviceURL.quoteUrl = 'ws://218.17.158.45:21009';
-    //     serviceURL.tradeUrl = 'ws://218.17.158.45:21010';
-    // }
+    if (process.env.NODE_ENV === 'development') {
+        serviceURL.goCommonSearchUrl = 'http://218.17.158.45:21001/api';
+        serviceURL.quoteUrl = 'ws://218.17.158.45:21009';
+        serviceURL.tradeUrl = 'ws://218.17.158.45:21010';
+    }
     console.log('api地址:', serviceURL);
 };