|
@@ -115,7 +115,9 @@ export default {
|
|
|
changeLoginNavIndex(key) {
|
|
|
console.log(key);
|
|
|
if (!key) return;
|
|
|
+ console.log(this.LoginNavIndex);
|
|
|
this.LoginNavIndex = this.projectList.findIndex(item => item.key === key);
|
|
|
+ console.log(this.LoginNavIndex);
|
|
|
},
|
|
|
// 切换项目
|
|
|
handleCommand(command) {
|
|
@@ -160,6 +162,7 @@ export default {
|
|
|
.then(({ child_sys_list }) => {
|
|
|
if (child_sys_list && child_sys_list.length > 0) {
|
|
|
this.projectList = child_sys_list;
|
|
|
+ if (this.LoginNavIndex) return;
|
|
|
this.projectList.forEach((item, index) => {
|
|
|
if (item.key === 'GCLS-Learn') {
|
|
|
this.LoginNavIndex = index;
|