Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1d02ace8
authored
Mar 19, 2024
by
xiehao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、修改参数
1 parent
e16534b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
src/components/onlyOffice/demo.vue
src/components/onlyOffice/demo.vue
View file @
1d02ace
...
...
@@ -14,17 +14,17 @@
import
vabOnlyOffice
from
'./index.vue'
export
default
{
components
:
{
vabOnlyOffice
},
components
:
{
vabOnlyOffice
},
data
()
{
return
{
documentServerUrl
:
'http://
121.201.2.228:53327
/'
,
documentServerUrl
:
'http://
43.143.211.42:19231
/'
,
config
:
{
document
:
{
fileType
:
'doc'
,
fileType
:
'doc
x
'
,
// 给服务端用的唯一id,同一个id就会获取服务器缓存里的文件(有这个key,就会先根据它去缓存里找),这项如果最开始只是先试用,可以先给个空字符串
key
:
'7
37bb9e67f
'
,
key
:
'7
1df19fbd1
'
,
// 文件名
title
:
'
text
.docx'
,
title
:
'
65f90a662c18a9e9f1878156
.docx'
,
//相关权限
// permissions: {
// copy: true, //定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
...
...
@@ -33,7 +33,7 @@ export default {
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url
:
'http://
172.20.10.9:9997/downloadFile/22
'
,
url
:
'http://
43.143.211.42:7006/downloadFile/29
'
,
},
documentType
:
'word'
,
height
:
'100%'
,
...
...
@@ -52,7 +52,7 @@ export default {
name
:
''
,
},
// 指定文档存储服务器的绝对路径
callbackUrl
:
'http://
192.168.8.120:9997/callback?fileId=22
'
,
callbackUrl
:
'http://
43.143.211.42:7006/callback?fileId=29
'
,
},
},
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment