update 路径修改
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
window._CONFIG = {}
|
||||
window._CONFIG.documentUrl = 'http://10.0.1.19:8184/laws-sinotruk/onlyoffice/downLoadFile?path='
|
||||
window._CONFIG.documentUrl = 'http://10.0.1.19:8184/laws-sinotruk/onlyOffice/downLoadFile?path='
|
||||
window._CONFIG.callbackUrl = 'http://10.0.1.19:8184/'
|
||||
window._CONFIG.configUrl = 'http://10.0.1.19:8082/'
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
<!--开发环境-->
|
||||
<% if (process.env.NODE_ENV === 'development' ) { %>
|
||||
<!-- onlyOffice服务器地址-->
|
||||
<script type="text/javascript" src="http://10.10.10.45:8103/web-apps/apps/api/documents/api.js"></script>
|
||||
<script type="text/javascript" src="http://10.10.10.45:8105/web-apps/apps/api/documents/api.js"></script>
|
||||
<script src="<%= BASE_URL %>dev_api_config.js"></script>
|
||||
<% } %>
|
||||
<!--测试环境-->
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
import { getAction, postAction } from './manage.js'
|
||||
|
||||
const addFile = (params) => getAction('/onlyoffice/saveEditFile', params)
|
||||
const getList = (params) => getAction('/onlyoffice/pageList', params)
|
||||
const deleteFile = (params) => postAction('/onlyoffice/delete', params)
|
||||
const addFile = (params) => getAction('/onlyOffice/saveEditFile', params)
|
||||
const getList = (params) => getAction('/onlyOffice/pageList', params)
|
||||
const deleteFile = (params) => postAction('/onlyOffice/delete', params)
|
||||
|
||||
export {
|
||||
addFile,
|
||||
|
||||
@@ -132,9 +132,10 @@ export default {
|
||||
console.log(12)
|
||||
},
|
||||
connectEditor () {
|
||||
console.log(this.$route.query)
|
||||
console.log(`${this.documentUrl}${this.$route.query.filePath}`)
|
||||
console.log(window._CONFIG.configUrl + 'page1/config.json')
|
||||
console.log(`${this.callbackUrl}laws-sinotruk/onlyoffice/recieveFile?fileId=${this.$route.query.fileId}&fileNm=${this.$route.query.fileName}&key=${this.$route.query.key}`)
|
||||
console.log(`${this.callbackUrl}laws-sinotruk/onlyOffice/receiveFile?fileId=${this.$route.query.fileId}&fileNm=${this.$route.query.fileName}&key=${this.$route.query.key}`)
|
||||
const nowTime = new Date().getTime()
|
||||
this.docEditor = new DocsAPI.DocEditor('iframeEditor', {
|
||||
width: '100%',
|
||||
@@ -152,7 +153,7 @@ export default {
|
||||
fileType: this.$route.query.fileType,
|
||||
key: this.$route.query.key + new Date().getTime(),
|
||||
info: {
|
||||
author: 'Me',
|
||||
author: this.$route.query.userName,
|
||||
created: 'Wed Oct 12 2022'
|
||||
},
|
||||
permissions: {
|
||||
@@ -182,8 +183,7 @@ export default {
|
||||
query: {
|
||||
id: 123456
|
||||
},
|
||||
callbackUrl:
|
||||
`${this.callbackUrl}laws-sinotruk/onlyoffice/recieveFile?fileId=${this.$route.query.fileId}&fileNm=${this.$route.query.fileName}&key=${this.$route.query.key}`,
|
||||
callbackUrl: `${this.callbackUrl}laws-sinotruk/onlyOffice/receiveFile?fileId=${this.$route.query.fileId}&fileNm=${this.$route.query.fileName}&key=${this.$route.query.key}`,
|
||||
user: {
|
||||
id: this.$route.query.userId,
|
||||
name: this.$route.query.userName
|
||||
|
||||
Reference in New Issue
Block a user