Browse Source

添加ai通识课问题

11wqe1 1 week ago
parent
commit
250b500989
2 changed files with 25 additions and 3 deletions
  1. 16 2
      src/components/sidebarL.vue
  2. 9 1
      src/components/topPage.vue

+ 16 - 2
src/components/sidebarL.vue

@@ -225,7 +225,14 @@ import { myMixin } from "@/mixins/mixin.js"
                 } catch (error) {
                     console.log(error);
                 }
-
+                if (val.toolId == "AIPopCourse" && (window.topU && !window.topU.gotype2)) {
+                    try {
+                        sessionStorage.setItem('gotype2','tongyong');
+                        window.topU.gotype2 = 'tongyong' 
+                    } catch (error) {
+                        console.log(error);
+                    }
+                }
                // 清空二级菜单选中状态
                 this.activeLTwo = ''
                 // val = null 就是点击了首页
@@ -339,7 +346,14 @@ import { myMixin } from "@/mixins/mixin.js"
                 } catch (error) {
                     console.log(error);
                 }
-
+                if (val.toolId == "AIPopCourse" && (window.topU && !window.topU.gotype2)) {
+                    try {
+                        sessionStorage.setItem('gotype2','tongyong');
+                        window.topU.gotype2 = 'tongyong' 
+                    } catch (error) {
+                        console.log(error);
+                    }
+                }
                 
                 this.activeL = ''
                 this.activeL = aInd +1

+ 9 - 1
src/components/topPage.vue

@@ -460,9 +460,17 @@ import { myMixin } from "@/mixins/mixin.js"
             // 打开平台应用
             async openApp(val){
                 console.log('val',val);
-                if(val.toolId == 'AIPopCourse') return this.$message.info('开发中,敬请期待')
+                // if(val.toolId == 'AIPopCourse') return this.$message.info('开发中,敬请期待')
                 // 点击相同应用不刷新
                 if (this.appSign == val.toolId) return
+                if (val.toolId == "AIPopCourse" && (window.topU && !window.topU.gotype2)) {
+                    try {
+                        sessionStorage.setItem('gotype2','tongyong');
+                        window.topU.gotype2 = 'tongyong' 
+                    } catch (error) {
+                        console.log(error);
+                    }
+                }
                 // 更新标识
                 await store.commit('user/SET_AppSIGN', val.toolId)