浏览代码

bug 修复

lilei 3 年之前
父节点
当前提交
82d76d3200
共有 2 个文件被更改,包括 9 次插入4 次删除
  1. 1 1
      public/version.json
  2. 8 3
      src/views/common/pdfViewModal.vue

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1655262387178
+  "version": 1655264410977
 }

+ 8 - 3
src/views/common/pdfViewModal.vue

@@ -22,9 +22,6 @@
             </div>
           </div>
           <div>
-            <div>
-              <a-button :disabled="scalLoading" size="small" @click="handleCapture('copy')"><a-icon type="copy" /> 复制截图</a-button>
-            </div>
             <div>
               <a-button :disabled="scalLoading" size="small" @click="handleCapture('export')"><a-icon type="export" /> 导出图片</a-button>
             </div>
@@ -56,6 +53,9 @@
       </div>
       <div class="btn-box">
         <a-button size="large" style="margin-right: 25px;" @click="handleCommonCancel" v-if="isCancel">{{ cancelText }}</a-button>
+        <a-button size="large" style="margin-right: 25px;" type="default" @click="handleCapture(hasClipboard?'copy':'export')">
+          {{ hasClipboard?'复制截图':'导出图片' }}
+        </a-button>
         <a-button size="large" type="primary" :loading="$store.state.app.printLoading" @click="handleCommonOk">
           {{ $store.state.app.printLoading?'打印中...':okText }}
         </a-button>
@@ -134,6 +134,11 @@ export default {
       printList: []
     }
   },
+  computed: {
+    hasClipboard () {
+      return !!typeof ClipboardItem
+    }
+  },
   methods: {
     // 选择打印机
     changePrint (v) {