Ver Fonte

清除gotype

11wqe1 há 2 semanas atrás
pai
commit
944996f5c5
1 ficheiros alterados com 7 adições e 2 exclusões
  1. 7 2
      src/components/index.vue

+ 7 - 2
src/components/index.vue

@@ -243,7 +243,7 @@ export default {
 
   data() {
     return {
-      gotype:sessionStorage.getItem('gotype'),
+      gotype:(window.topU && window.topU.gotype) ?  window.topU.gotype : '',
       zoneList: [],
       zoneClass: [],
       page: 1,
@@ -339,7 +339,12 @@ export default {
       }else{
         window.location.href = `https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/CourseCon?userid=${this.userid}&oid=${this.oid}&org=${this.org}&role=${this.role}&tType=${this.tType}`
       }
-      sessionStorage.removeItem('gotype');
+      try {
+        window.topU.gotype = '' 
+      } catch (error) {
+        console.log(error);
+      }
+      // sessionStorage.removeItem('gotype');
     },
     search(){
       if(this.typeCheck || this.typeCheck2){