소스 검색

fix: 自测修复

wzl 1 개월 전
부모
커밋
3e39f326cc
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      packages/core/src/index.js
  2. 1 0
      packages/webview/src/components/SecurityToolbar/RedactionConfirmDialog.vue

+ 1 - 2
packages/core/src/index.js

@@ -4304,7 +4304,6 @@ class ComPDFKitViewer {
         const redactions = Array.isArray(redaction) ? redaction : [redaction]
         redactionList = redactions
       }
-      console.log(redactionList)
       redactionList.forEach(async item => {
         if (item.erasure) {
           await this.messageHandler.sendWithPromise('ErasureRedactionFromRect', { pagePtr: item.pagePtr, rect: item.rect })
@@ -4317,7 +4316,7 @@ class ComPDFKitViewer {
       await this.delAnnotations(this.redactionList)
       this.redactionList.length = 0
     }
-    this.pdfViewer.refresh()
+    await this.updateTextPtr()
   }
 }
 

+ 1 - 0
packages/webview/src/components/SecurityToolbar/RedactionConfirmDialog.vue

@@ -41,6 +41,7 @@ const confirm = () => {
   useViewer.setActiveToolMode('view')
   useViewer.setShowRedactionApplyBar(false)
   closeDialog()
+  useViewer.closeElement('leftPanel')
 }
 </script>