guoxiaohuan 4 years ago
parent
commit
4daa55f9c1
2 changed files with 14 additions and 22 deletions
  1. 5 5
      public/systemConf.js
  2. 9 17
      src/store/index.js

+ 5 - 5
public/systemConf.js

@@ -24,13 +24,13 @@ var __systemConf = {
     systemCode: 'wandaBmGuide',
     conf: {
         // 阿里云
-        // editerUrl: 'http://60.205.177.43:80/wandaEditer/', // 编辑器地址
-        // wandaBmGuideUrl: 'http://60.205.177.43:80/wandaBmGuide/', //管理书地址
+        editerUrl: 'http://60.205.177.43:80/wandaEditer/', // 编辑器地址
+        wandaBmGuideUrl: 'http://60.205.177.43:80/wandaBmGuide/', //管理书地址
         // http://glsms.wanda-dev.cn/ 测试服
-        editerUrl: 'http://glsms.wanda-dev.cn/wandaEditer/', // 编辑器地址
-        wandaBmGuideUrl: 'http://glsms.wanda-dev.cn/wandaBmGuide/', //管理书地址
+        // editerUrl: 'http://glsms.wanda-dev.cn/wandaEditer/', // 编辑器地址
+        // wandaBmGuideUrl: 'http://glsms.wanda-dev.cn/wandaBmGuide/', //管理书地址
         // editerUrl: 'http://localhost:8091/wandaEditer/', // 编辑器地址
         // wandaBmGuideUrl: 'http://localhost:8090/wandaBmGuide/', //管理书地址
     },
 }
-window.__systemConf = __systemConf
+window.__systemConf = __systemConf

+ 9 - 17
src/store/index.js

@@ -1,21 +1,15 @@
 import Vue from 'vue'
 import Vuex from 'vuex'
-import {
-    login,
-    queryFloor,
-    queryfmapID
-} from '@/api/login.js'
-import {
-    queryBrand
-} from '@/api/public.js'
+import { login, queryFloor, queryfmapID } from '@/api/login.js'
+import { queryBrand } from '@/api/public.js'
 import axios from 'axios'
 import router from '../router'
 
 Vue.use(Vuex)
 export default new Vuex.Store({
     state: {
-        // ssoToken: 'admin:xuliping',
-        ssoToken: null,
+        ssoToken: 'admin:xuliping',
+        // ssoToken: null,
         plazaName: '',
         isPreview: false,
         lastRoute: '',
@@ -132,13 +126,11 @@ export default new Vuex.Store({
         },
         STOREPLAZAID(state, id) {
             state.plazaId = id
-        }
+        },
     },
     actions: {
         // 获取项目列表、userId
-        async getUserInfo({
-            commit
-        }, palyload) {
+        async getUserInfo({ commit }, palyload) {
             await login({}).then((res) => {
                 // 获取用户当前权限
                 console.log(res)
@@ -147,11 +139,11 @@ export default new Vuex.Store({
                     let level = res.level
                     if (level === 0) {
                         router.push({
-                            path: './home/homepage'
+                            path: './home/homepage',
                         })
                     } else {
                         router.push({
-                            path: './group'
+                            path: './group',
                         })
                     }
                     // commit('SETISREQUESTtAUTH', false)
@@ -203,4 +195,4 @@ export default new Vuex.Store({
         },
     },
     modules: {},
-})
+})