Browse Source

轻松不显示练习题管理

natasha 7 months ago
parent
commit
a436b5c3d1
1 changed files with 12 additions and 1 deletions
  1. 12 1
      src/components/Header.vue

+ 12 - 1
src/components/Header.vue

@@ -421,7 +421,18 @@ export default {
         .then((res) => {
           if (res.child_sys_list && res.child_sys_list.length > 0) {
             let invok_module = this.$route.query.invok_module;
-            _this.projectList = res.child_sys_list;
+            const isNotYouth = window.location.origin !== 'https://youthchinesedu.blcup.com';
+            if (isNotYouth) {
+              _this.projectList = res.child_sys_list;
+            } else {
+              let child_sys_list_youth = [];
+              res.child_sys_list.forEach((item) => {
+                if (item.key !== 'GCLS-Exercise') {
+                  child_sys_list_youth.push(item);
+                }
+              });
+              _this.projectList = child_sys_list_youth;
+            }
             for (let i = 0; i < _this.projectList.length; i++) {
               let item = _this.projectList[i];
               if (invok_module) {