11wqe1 há 1 semana atrás
pai
commit
301ebddcfa
2 ficheiros alterados com 3 adições e 25 exclusões
  1. 2 16
      src/components/sidebarL.vue
  2. 1 9
      src/components/topPage.vue

+ 2 - 16
src/components/sidebarL.vue

@@ -225,14 +225,7 @@ 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 就是点击了首页
@@ -346,14 +339,7 @@ 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

+ 1 - 9
src/components/topPage.vue

@@ -460,17 +460,9 @@ 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)