فهرست منبع

添加ai通识课

11wqe1 1 هفته پیش
والد
کامیت
4d1cab5ef1
2فایلهای تغییر یافته به همراه13 افزوده شده و 1 حذف شده
  1. 2 1
      src/components/pages/liyuan/CourseCon.vue
  2. 11 0
      src/components/pages/liyuan/components/card.vue

+ 2 - 1
src/components/pages/liyuan/CourseCon.vue

@@ -112,9 +112,10 @@ export default {
         { title: '课程管理', icon: require('../../../assets/icon/liyuan/niandukaohe.svg'), type: 1, to: "/course" },
         { title: '课程中心', icon: require('../../../assets/icon/liyuan/gerendangan.svg'), type: 4, to: `/pbl-student-table/dist/#/index?userid=${this.$route.query.userid}&oid=${this.$route.query.oid}&org=${this.$route.query.org}&tType=${this.$route.query.tType}&cid=&screenType=3&gotype=1` },
         { title: 'AI应用', icon: require('../../../assets/icon/liyuan/jiaoshihuaxiang.svg'), type: 3, to: `?userid=${this.$route.query.userid}&oid=${this.$route.query.oid}&org=${this.$route.query.org}&role=${this.$route.query.role}&tab=0&gotype=1` },
-        { title: '工作空间', icon: require('../../../assets/icon/liyuan/ketangguancha.svg'), type: 3, to:`?userid=${this.$route.query.userid}&oid=${this.$route.query.oid}&org=${this.$route.query.org}&role=${this.$route.query.role}&tab=1&gotype=1` },
+        // { title: '工作空间', icon: require('../../../assets/icon/liyuan/ketangguancha.svg'), type: 3, to:`?userid=${this.$route.query.userid}&oid=${this.$route.query.oid}&org=${this.$route.query.org}&role=${this.$route.query.role}&tab=1&gotype=1` },
         { title: '知识库', icon: require('../../../assets/icon/liyuan/zhinengbiaodan.svg'), type:3, to: `?userid=${this.$route.query.userid}&oid=${this.$route.query.oid}&org=${this.$route.query.org}&role=${this.$route.query.role}&tab=2&gotype=1`  },
         { title: '协同建构', icon: require('../../../assets/icon/liyuan/zhinengbiaodan.svg'), type: 1, to: "/synergyCourse" },
+        { title: 'AI通识课', icon: require('../../../assets/icon/liyuan/ketangguancha.svg'), type: 6, to: `/ai.html?userid=${this.$route.query.userid}` },
       ]
     }
   },

+ 11 - 0
src/components/pages/liyuan/components/card.vue

@@ -71,6 +71,7 @@ export default {
                 console.log('cardData',this.cardData);
                 this.$router.push({ path: this.to, query: query })
             }else if (this.type == 2) { 
+                sessionStorage.setItem('gotype', this.$route.path);
                 let con = this.betaL =='beta'? 'https://beta.cloud.cocorobo.cn' : 'https://cloud.cocorobo.cn'
                 console.log( `${con}${this.to}`);
                 window.location.href = `${con}${this.to}`;
@@ -90,6 +91,16 @@ export default {
                 // console.log( `${con}${this.to}`);
                 // 直接传的地址不用区分beta与正式
                 window.location.href = `${this.to}`;
+            } else if (this.type == 6) { 
+                sessionStorage.setItem('gotype2', this.$route.path);
+                try {
+                    window.topU.gotype2 = this.$route.path
+                } catch (error) {
+                    console.log(error);
+                }
+                let con = this.betaL =='beta'? 'https://beta.cloud.cocorobo.cn' : 'https://cloud.cocorobo.cn'
+                console.log( `${con}${this.to}`);
+                window.location.href = `${con}${this.to}`;
             }
         }
     },