修改安全令牌问题
This commit is contained in:
+2
-2
@@ -8,14 +8,14 @@
|
||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||
<!-- onlyOffice服务器地址-->
|
||||
<!-- <script type="text/javascript" src="http://onlyoffice.sinotruk.com/web-apps/apps/api/documents/api.js"></script>-->
|
||||
<script type="text/javascript" src="http://47.92.92.38:8103/web-apps/apps/api/documents/api.js"></script>
|
||||
<script type="text/javascript" src="http://10.10.10.45:80/web-apps/apps/api/documents/api.js"></script>
|
||||
<!-- 全局配置 -->
|
||||
<% if (process.env.NODE_ENV === 'development' ) { %>
|
||||
<script>
|
||||
window._CONFIG = {
|
||||
'documentUrl': 'http://39.98.140.126:18888/file/model/task_9ad64b01/task_9ad64b01_top_9ad64b01_node.docx',
|
||||
// 'callbackUrl': 'http://39.98.140.126:17211/',
|
||||
'configUrl': 'http://localhost:8081/'
|
||||
'configUrl': 'http://localhost:8082/'
|
||||
}
|
||||
</script>
|
||||
<% } %>
|
||||
|
||||
+16
-3
@@ -32,6 +32,7 @@ export default {
|
||||
if (console && console.log) console.log(message)
|
||||
},
|
||||
onAppReady () {
|
||||
console.log(123);
|
||||
this.innerAlert('Document editor ready')
|
||||
},
|
||||
onDocumentStateChange (event) {
|
||||
@@ -59,6 +60,7 @@ export default {
|
||||
})
|
||||
},
|
||||
onRequestHistoryData (data) {
|
||||
console.log(data);
|
||||
const version = data.data
|
||||
const historyData =
|
||||
[
|
||||
@@ -74,6 +76,7 @@ export default {
|
||||
document.location.reload()
|
||||
},
|
||||
onError (event) {
|
||||
console.log(event);
|
||||
if (event) this.innerAlert(event.data)
|
||||
},
|
||||
onOutdatedVersion (event) {
|
||||
@@ -129,8 +132,8 @@ export default {
|
||||
// text对应各种文档类型(.doc, .docm, .docx, .dot, .dotm, .dotx, .epub, .fodt, .htm, .html, .mht, .odt, .ott, .pdf, .rtf, .txt, .djvu, .xps)
|
||||
// spreadsheet对应表格类型(.csv, .fods, .ods, .ots, .xls, .xlsm, .xlsx, .xlt, .xltm, .xltx)
|
||||
// presentation对应PPT类型(.fodp, .odp, .otp, .pot, .potm, .potx, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx)
|
||||
documentType: 'text',
|
||||
token: '',
|
||||
documentType: 'word',
|
||||
token: 'secret',
|
||||
document: {
|
||||
// title: this.$route.query.oldFileName + '.' + this.$route.query.fileType,
|
||||
title: '文档.docx',
|
||||
@@ -149,7 +152,17 @@ export default {
|
||||
fillForms: true, // 定义是否能在文档中填充表单
|
||||
modifyFilter: true, // 定义过滤器是否可以全局应用(true)影响所有其他用户,或局部应用(false),即仅适用于当前用户。如果将mode参数设置为edit,则过滤器修改仅对电子表格编辑器可用。默认值为true。
|
||||
modifyContentControl: true, // 定义是否可以更改内容控件设置。仅当mode参数设置为edit时,内容控件修改才可用于文档编辑器。默认值为true。
|
||||
review: true // 第一是否显示审阅文档菜单
|
||||
review: true, // 第一是否显示审阅文档菜单
|
||||
"commentGroups": {
|
||||
"edit": ["Group2", ""],
|
||||
"remove": [""],
|
||||
"view": ""
|
||||
},
|
||||
"copy": true,
|
||||
"deleteCommentAuthorOnly": false,
|
||||
"editCommentAuthorOnly": false,
|
||||
"print": true,
|
||||
"reviewGroups": ["Group1", "Group2", ""]
|
||||
}
|
||||
},
|
||||
editorConfig: {
|
||||
|
||||
Reference in New Issue
Block a user