|
@@ -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;
|