Browse Source

修改d登录

林倩 4 years ago
parent
commit
034fa359db
2 changed files with 2 additions and 4 deletions
  1. 1 1
      config/dev.env.js
  2. 1 3
      src/pages/layout/components/navbar.vue

+ 1 - 1
config/dev.env.js

@@ -14,7 +14,7 @@ module.exports = merge(prodEnv, {
     QQQ: '"/easy-mock2"',
 
     //是否需要登录验证
-    NEED_LOGIN: "false",
+    NEED_LOGIN: "true",
 
     //需要依赖的系统名称
     // INSTALLED_PROJECT: "'zfba,demo2,cross-env'",

+ 1 - 3
src/pages/layout/components/navbar.vue

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