Browse Source

8.3二开平台部分合并至8.0

luoyifan 2 years ago
parent
commit
3da8186c91
1 changed files with 6 additions and 5 deletions
  1. 6 5
      assets/yvan_require.js

+ 6 - 5
assets/yvan_require.js

@@ -18,11 +18,6 @@ define(["require", "exports"], function (require2, exports) {
         if (typeof setupProcess === 'function') {
         if (typeof setupProcess === 'function') {
             setupProcess('A3');
             setupProcess('A3');
         }
         }
-        if (window.localStorage.getItem("style-mode")) {
-            // 黑色
-            require(['css!/assets/dark.css'], function () {
-            })
-        }
 
 
         // require(['axios', 'qs', 'lodash', 'json5', 'moment', 'jquery', 'yvan-ext', 'jszip', 'ClipboardJS'], function (axios, qs, lodash, json5, moment, jquery, YvanUI, jszip, ClipboardJS) {
         // require(['axios', 'qs', 'lodash', 'json5', 'moment', 'jquery', 'yvan-ext', 'jszip', 'ClipboardJS'], function (axios, qs, lodash, json5, moment, jquery, YvanUI, jszip, ClipboardJS) {
         // 'lodash', 'jquery', 'axios', 'qs',
         // 'lodash', 'jquery', 'axios', 'qs',
@@ -72,6 +67,12 @@ define(["require", "exports"], function (require2, exports) {
                 window['Sortable'] = Sortable;
                 window['Sortable'] = Sortable;
                 window['YvanUI'] = YvanUI;
                 window['YvanUI'] = YvanUI;
 
 
+                if (window.localStorage.getItem("dark-mode") && window.location.search !== '?design=true') {
+                    // 黑色
+                    require(['css!/node_modules/yvan-ext/dist/dark.css'], function () {
+                    })
+                }
+
                 callback();
                 callback();
             })
             })
         })
         })