guanchunjie 3 年之前
父節點
當前提交
4bda5a2c5d
共有 3 個文件被更改,包括 2 次插入16 次删除
  1. 1 13
      src/components/common/Header.vue
  2. 0 2
      src/views/login.vue
  3. 1 1
      vue.config.js

+ 1 - 13
src/components/common/Header.vue

@@ -116,7 +116,6 @@
 <script>
 import { mapGetters } from "vuex";
 import { getToken, removeToken, getConfig } from "@/utils/auth";
-import Cookies from "js-cookie";
 import { getContent, getStaticContent, getLearnWebContent } from "@/api/ajax";
 import { setI18nLang } from "@/utils/i18n";
 import { saveSession, getSession, removeSession } from "@/utils/role";
@@ -228,7 +227,6 @@ export default {
     },
     QuitLogin() {
       removeToken();
-      removeSession("SysList");
       this.userShow = false;
       this.userMessage = null;
       window.location.href = "/";
@@ -279,17 +277,7 @@ export default {
     if (config) {
       _this.configInfor = JSON.parse(config);
     }
-    let SysList = getSession("SysList");
-    if (!SysList) {
-      _this.getChildSysList();
-    } else {
-      _this.projectList = SysList;
-      _this.projectList.forEach((item, index) => {
-        if (item.key == "GCLS-Personal") {
-          _this.LoginNavIndex = index;
-        }
-      });
-    }
+    _this.getChildSysList();
   },
   mounted() {
     let _this = this;

+ 0 - 2
src/views/login.vue

@@ -151,7 +151,6 @@ export default {
     },
     //登录
     handleLogin() {
-      removeSession("SysList");
       this.$refs.loginForm.validate((valid) => {
         if (valid) {
           this.loading = true;
@@ -180,7 +179,6 @@ export default {
     },
   },
   mounted() {
-    removeSession("SysList");
     this._getConfig();
   },
 };

+ 1 - 1
vue.config.js

@@ -6,7 +6,7 @@ function resolve(dir) {
   return path.join(__dirname, dir)
 }
 
-const name = defaultSettings.title || '教学平台' // page title
+const name = defaultSettings.title || '个人中心' // page title
 
 // If your port is set to 80,
 // use administrator privileges to execute the command line.