|
|
@@ -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,
|