diff --git a/src/views/onlyoffice/onlyoffice.vue b/src/views/onlyoffice/onlyoffice.vue index 437991f..8d56bb2 100644 --- a/src/views/onlyoffice/onlyoffice.vue +++ b/src/views/onlyoffice/onlyoffice.vue @@ -39,6 +39,9 @@ export default { ) .then((res) => { this.config = res.data; + this.config.editorConfig.callbackUrl = this.config.editorConfig.callbackUrl + "/" + id; + console.log(this.config,"OOOOOOOOOOOOOOOOOOOOOOOOOOO"); + // this.config.callbackUrl = this.config.callbackUrl + `/${this.userId}`; var docEditor = new DocsAPI.DocEditor("placeholder", this.config); }); diff --git a/vue.config.js b/vue.config.js index 10e5b5b..dfb7aa2 100644 --- a/vue.config.js +++ b/vue.config.js @@ -11,8 +11,8 @@ const name = process.env.VUE_APP_TITLE || '调解系统' // 网页标题 const port = process.env.port || process.env.npm_config_port || 80 // 端口 -const API = 'http://121.40.189.20:7001' //生产 -// const API = 'http://121.40.189.20:6001' //测试 +// const API = 'http://121.40.189.20:7001' //生产 +const API = 'http://121.40.189.20:6001' //测试 // const API = 'http://192.168.3.18:6001' //B // const API = 'http://172.16.0.237:6001' //Q // const API = 'http://172.16.1.26:6001' //w