From 365ea069f179ee71a7a8cc7785ccd2d86bd4881c Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 03 二月 2021 18:33:45 +0800
Subject: [PATCH] 2021-02-03

---
 src/views/sso/index.jsx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/views/sso/index.jsx b/src/views/sso/index.jsx
index 077a30b..7af3a65 100644
--- a/src/views/sso/index.jsx
+++ b/src/views/sso/index.jsx
@@ -6,7 +6,7 @@
 
 import Api from '@/api'
 import Utils from '@/utils/utils.js' 
-import options from '@/store/options.js'
+import { styles } from '@/store/options.js'
 import { modifyMemberLevel } from '@/store/action'
 import './index.scss'
 
@@ -105,8 +105,8 @@
         window.GLOB.mainlogo = systemMsg.mainlogo
         window.GLOB.style = systemMsg.style
     
-        if (window.GLOB.style && options.styles[window.GLOB.style]) {
-          document.getElementById('root').className = options.styles[window.GLOB.style]
+        if (window.GLOB.style && styles[window.GLOB.style]) {
+          document.body.className = styles[window.GLOB.style]
         }
 
         if (res.titlelogo && window.GLOB.favicon !== res.titlelogo) {

--
Gitblit v1.8.0