Browse Source

还原部分代码

林倩 2 years ago
parent
commit
1ab95b0ec8
5 changed files with 11 additions and 11 deletions
  1. 4 4
      config/dev.env.js
  2. 1 1
      config/index.js
  3. 1 1
      config/prod.env.js
  4. 1 1
      package.json
  5. 4 4
      src/pages/layout/components/navbar.vue

+ 4 - 4
config/dev.env.js

@@ -13,7 +13,7 @@ module.exports = merge(prodEnv, {
   QQQ: '"/easy-mock2"',
 
   //是否需要登录验证
-  NEED_LOGIN: 'true',
+  NEED_LOGIN: 'false',
 
   //需要依赖的系统名称
   // INSTALLED_PROJECT: "'zfba,demo2,cross-env'",
@@ -27,14 +27,14 @@ module.exports = merge(prodEnv, {
 
   // 布局结构配置,可选项包含 `layout-menu-top`, `layout`
   LAYOUT: '"layout"',
-  PORT: '8872',
+  PORT: '8871',
   //是否启用本地mock
   IS_MOCK: 'false',
   PROXY_TABLE: JSON.stringify({
     '/dcucauth': {
-      target: "http://10.11.1.237:8861"
+      // target: "http://10.11.1.237:8861"
       // target: "http://10.254.11.203:8861"
-      //  target: "http://192.168.10.2:8871"
+       target: "http://192.168.10.2:8871"
       //  target: "http://192.168.6.133:3471"
       // target: 'http://192.168.6.131:3561'
     }

+ 1 - 1
config/index.js

@@ -13,7 +13,7 @@ module.exports = {
         assetsPublicPath: "/",
         // Various Dev Server settings
         host: "0.0.0.0", // can be overwritten by process.env.HOST
-        port: 8872, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
+        port: 8871, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
         autoOpenBrowser: false,
         errorOverlay: true,
         notifyOnErrors: true,

+ 1 - 1
config/prod.env.js

@@ -4,7 +4,7 @@ module.exports = {
     IS_BASE_PACKAGE: "true",
     FILE_BASE_PATH: '"http://192.168.10.14:1665"',
 
-    NEED_LOGIN: "true",
+    NEED_LOGIN: "false",
     BASE_API: '"/dcucauth"',
     BUILD_PATH: '"../dist"',
     IS_OAUTH2: "false",

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "dcuc-web-auth",
-  "version": "2.4.0-xjaks",
+  "version": "2.4.0-tjdsj",
   "description": "",
   "private": false,
   "main": "lib/static/js/app.js",

+ 4 - 4
src/pages/layout/components/navbar.vue

@@ -46,11 +46,11 @@ export default {
     },
     logout() {
       this.$confirm('是否确定退出系统').then(() => {
-        // if (process.env.NEED_LOGIN == true) {
+        if (process.env.NEED_LOGIN == true) {
           window.loginUtil.logout(this);
-        // } else {
-        //   window.location.href = `https://login.iam.com/apphub/logout`;
-        // }
+        } else {
+          window.location.href = `https://login.iam.com/apphub/logout`;
+        }
       });
     },
     handleClickSearch() {