Jelajahi Sumber

[v1.1.20220413] 匯出PDF時,關閉IRS協議

Louise Lin 3 tahun lalu
induk
melakukan
9a620385f4

+ 1 - 1
HiTeachCC/ClientApp/src/store/index.js

@@ -149,7 +149,7 @@ export default new Vuex.Store({
     isShowAskCopyPage:false,
     isShowAskCopyPageIRSName:'',
     showtextInuptCard:false,
-    version: 'v1.6.20220412'
+    version: 'v1.1.20220413'
   },
   mutations: {
   },

+ 5 - 1
HiTeachCC/ClientApp/src/views/Board.vue

@@ -2715,6 +2715,7 @@ export default {
         let isAnswer = this.$store.state.students.filter(item => {
           return item.option != ''
         })
+        if(this.$store.state.isExportPDFNow==false){
         var times = new Date().getTime()
         var msgInitiative = {
           action: 'State.Get',
@@ -2747,13 +2748,14 @@ export default {
           this.$store.state.IRSswitch = true
           this.singnalRMessage(msgInitiative, '8888', '', '')
         }
+        }
 
         r(200)
       })
     },
     //每10秒广播一次state状态
     broadcastState() {
-      if (this.stage != null && this.$store.state.imgArr && this.$store.state.imgArr.idArr && sessionStorage.getItem('user')) {
+      if (this.stage != null && this.$store.state.imgArr && this.$store.state.imgArr.idArr && sessionStorage.getItem('user')&&this.$store.state.isExportPDFNow==false) {
         //等所有資料載入才能發訊息
         console.log('调用到了广播方法')
         var times = new Date().getTime()
@@ -4732,6 +4734,7 @@ export default {
     },
     async exportPDF() {
       this.Hishow = false
+      this.$store.state.IRSswitch = false
       const doc = new jsPDF('l', 'px', [window.innerWidth, window.innerHeight])
       this.$store.state.carouselSlide = 1
       let that = this
@@ -4792,6 +4795,7 @@ export default {
       function clearTime() {
         clearInterval(myInterval)
         that.$store.state.isExportPDFNow = false
+        that.$store.state.IRSswitch = true
       }
     },
     add() {