liujiayin 3 lat temu
rodzic
commit
c8ef9fcd30
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      src/views/viewFile/index.vue

+ 4 - 4
src/views/viewFile/index.vue

@@ -12,7 +12,7 @@ import { getToken } from '@/utils/auth'
 
 export default {
     name: 'editor',
-    data () {
+    data() {
         return {
             doctype: '',
             newId: '',
@@ -21,7 +21,7 @@ export default {
             option: {}
         }
     },
-    mounted () {
+    mounted() {
         this.option = this.$route.query
         /* 调用初始化方法 ,渲染wps*/
         if (this.option.url) {
@@ -29,7 +29,7 @@ export default {
         }
     },
     methods: {
-        setEditor (option) {
+        setEditor(option) {
             this.doctype = handleDocType(option.fileType)
             let url = option.url + '&access_token=' + getToken();
             console.log("url:" + url)
@@ -40,7 +40,7 @@ export default {
                     title: option.title,
                     permissions: {
                         comment: true,
-                        copy: false,
+                        copy: true,
                         download: false,
                         modifyContentControl: true,
                         modifyFilter: true,