Browse Source

切换线上打包配置

shenji 2 years ago
parent
commit
526de5d177
4 changed files with 10 additions and 6 deletions
  1. 2 2
      src/components/tools/UserMenu.vue
  2. 3 1
      src/config/router.config.js
  3. 3 1
      src/store/modules/user.js
  4. 2 2
      url.config.js

+ 2 - 2
src/components/tools/UserMenu.vue

@@ -181,10 +181,10 @@
           content: '真的要注销登录吗 ?',
           onOk() {
             return that.Logout({}).then(() => {
-              window.location.href="/";
+              // window.location.href="/";
               //window.location.reload()
                 //博物馆单点登录注销
-                // window.location.href="http://172.18.91.12:8888/sso";
+                window.location.href="http://172.18.91.12:8888/sso";
             }).catch(err => {
               that.$message.error({
                 title: '错误',

+ 3 - 1
src/config/router.config.js

@@ -299,7 +299,7 @@ export const constantRouterMap = [
     component: UserLayout,
     redirect: '/user/login',
     // 博物馆单点登录
-    // component: () => import('@/views/Index'),
+    component: () => import('@/views/Index'),
     hidden: true,
     children: [
       {
@@ -388,6 +388,8 @@ export const constantRouterMap = [
   },
   {//////////////角色路径
     path: '/roleViewList',
+    name: 'roleViewList',
+    hidden: true,
     component: () => import(/* webpackChunkName: "fail" */ '../views/system/RoleUserList.vue')
   },
   {//////////////事故处理单路径

+ 3 - 1
src/store/modules/user.js

@@ -236,7 +236,9 @@ const user = {
         logout(logoutToken).then(() => {
             let sevice = 'http://' + window.location.host + '/'
             let serviceUrl = encodeURIComponent(sevice)
-            window.location.href = window._CONFIG['casPrefixUrl']+"/logout?service="+serviceUrl;
+            // window.location.href = window._CONFIG['casPrefixUrl']+"/logout?service="+serviceUrl;
+              //博物馆单点登录注销
+            window.location.href="http://172.18.91.12:8888/sso";
             // resolve()
         }).catch(() => {
           console.log("111111111111111")

+ 2 - 2
url.config.js

@@ -1,9 +1,9 @@
 export function getEditorJumpUrl () {
-    let url = 'http://localhost:8080'
+    // let url = 'http://localhost:8080'
     //let url ="http://106.15.206.14:8089";//测试服务器
     // let url ="http://192.168.1.158:8089";//森宇服务器
     // let url = "http://220.191.168.86:18089" // 森语外网
-    // let url = 'http://172.18.91.36:8082' // 博物馆OA
+    let url = 'http://172.18.91.36:8082' // 博物馆OA
     return url
   }