From d38dc481492878c04ddf2d6bc2e9bf7d44c57fd7 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 23 十二月 2019 18:29:38 +0800
Subject: [PATCH] 2019-12-23

---
 src/index.js |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/index.js b/src/index.js
index 46ab291..2763702 100644
--- a/src/index.js
+++ b/src/index.js
@@ -7,6 +7,7 @@
 import '@/assets/css/main.scss'
 import '@/assets/css/action.scss'
 import '@/assets/css/minkeicon.css'
+import '@/assets/css/viewstyle.scss'
 
 if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
   window.location.replace(window.location.href.split('build/')[0] + 'index.html')
@@ -21,7 +22,17 @@
   )
 }
 
-document.title = window.GLOB.title || 'MinkeSoft'
+document.title = (window.GLOB && window.GLOB.title) || 'MinkeSoft'
+
+const option = {
+  white: 'mk-white'
+}
+
+if (window.GLOB && window.GLOB.style && option[window.GLOB.style]) {
+  document.getElementById('root').className = option[window.GLOB.style]
+}
+
+
 
 render(Route)
 

--
Gitblit v1.8.0