Commit e189d0d8 authored by 张伯涛's avatar 张伯涛

bug修改

parent c8ec2a52
......@@ -6,11 +6,6 @@ ENV = 'development'
VUE_APP_BASE_API = '/dev-api'
VUE_CLI_BABEL_TRANSPILE_MODULES = true
# index.html文件引用的
ONLYOFFICE_WEB = 'http://192.168.1.27:30082'
VUE_APP_BASE_WEB = 'http://192.168.1.27:30082'
VUE_APP_BASE_APIWEB = 'http://192.168.1.27:30082'
# 文件获取地址
ONLYOFFICE_GETFILE = 'http://192.168.1.71:8082'
# 编辑word后保存时回调的地址
ONLYOFFICE_CALLBACK = 'http://192.168.1.71:8082'
VUE_APP_BASE_API_ONLYOFFICE_WEB = 'http://192.168.1.27:30082'
VUE_APP_BASE_API_GETFILE = 'http://192.168.1.71:8082'
VUE_APP_BASE_API_CALLBACK = 'http://192.168.1.71:8082'
......@@ -5,9 +5,7 @@ ENV = 'production'
# base api
VUE_APP_BASE_API = 'http://49.232.167.247:20014/'
# index.html文件引用的
ONLYOFFICE_WEB = 'http://49.232.167.247:20016'
# 文件获取地址
ONLYOFFICE_GETFILE = 'http://172.21.0.10:20014'
# 编辑word后保存时回调的地址
ONLYOFFICE_CALLBACK = 'http://172.21.0.10:20014'
VUE_APP_BASE_API_ONLYOFFICE_WEB = 'http://49.232.167.247:20016'
VUE_APP_BASE_API_GETFILE = 'http://49.232.167.247:20014'
VUE_APP_BASE_API_CALLBACK = 'http://49.232.167.247:20014'
......@@ -30,9 +30,8 @@ export default {
}
},
mounted() {
// console.log('process.env.VUE_APP_BASE_API_ONLYOFFICE_WEB', process.env.VUE_APP_BASE_WEB)
// console.log('process.env.VUE_APP_BASE_API_WEB', process.env.VUE_APP_BASE_APIWEB)
// console.log('VUE_APP_BASE_API', process.env.VUE_APP_BASE_API)
console.log('VUE_APP_BASE_API_GETFILE', process.env.VUE_APP_BASE_API_GETFILE)
console.log('VUE_APP_BASE_API_CALLBACK', process.env.VUE_APP_BASE_API_CALLBACK)
if (this.option) {
this.setEditor(this.option)
}
......@@ -49,7 +48,7 @@ export default {
// key 默认置空则不走缓存 always update
key: option.key,
title: option.title,
url: 'http://172.21.0.10:20014/office/getFile?key=' + option.key,
url: process.env.VUE_APP_BASE_API_GETFILE + '/office/getFile?key=' + option.key,
permissions: {
comment: true,
copy: true, // 定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
......@@ -67,7 +66,7 @@ export default {
// documentType: 'word',
editorConfig: {
mode: 'edit',
callbackUrl: 'http://172.21.0.10:20014/office/callback', // "编辑word后保存时回调的地址,这个api需要自己写了,将编辑后的文件通过这个api保存到自己想要的位置
callbackUrl: process.env.VUE_APP_BASE_API_CALLBACK + '/office/callback', // "编辑word后保存时回调的地址,这个api需要自己写了,将编辑后的文件通过这个api保存到自己想要的位置
lang: 'zh-CN', // 语言设置
// 定制
customization: {
......
......@@ -159,7 +159,7 @@
<!-- 添加或修改配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body :close-on-click-modal="false" @close="cancel">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="120px">
<el-form-item label="图片:" prop="url">
<el-form-item label="" prop="url">
<el-upload
action="#"
:file-list="fileList"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment