Browse Source

fix: 修正不显示讨论区仍然禁用某些快捷键的问题

ChenYangfan 6 years ago
parent
commit
ae10cda2a7
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/store/modules/pdf.js
  2. 1 1
      src/views/reader/PdfReader.vue

+ 1 - 1
src/store/modules/pdf.js

@@ -13,7 +13,7 @@ export default {
     slideInfo: {},
     slideInfo: {},
     totalPages: 0,
     totalPages: 0,
     currentPage: 1,
     currentPage: 1,
-    showDiscussion: false,
+    showDiscussion: true,
     focus: false
     focus: false
   },
   },
 
 

+ 1 - 1
src/views/reader/PdfReader.vue

@@ -59,7 +59,7 @@ export default {
         this.focus && this.$store.commit(USE_FOCUS)
         this.focus && this.$store.commit(USE_FOCUS)
         return
         return
       }
       }
-      if (!this.focus) {
+      if (!this.showDiscussion || !this.focus) {
         switch (e.key) {
         switch (e.key) {
           case 'ArrowDown':
           case 'ArrowDown':
           case 'ArrowRight':
           case 'ArrowRight':