hanchaobo 2 лет назад
Родитель
Сommit
5918d71352
2 измененных файлов: 5 добавлений и 2 удалений
  1. 3
    0
      src/views/onlyoffice/onlyoffice.vue
  2. 2
    2
      vue.config.js

+ 3
- 0
src/views/onlyoffice/onlyoffice.vue Просмотреть файл

39
         )
39
         )
40
         .then((res) => {
40
         .then((res) => {
41
           this.config = res.data;
41
           this.config = res.data;
42
+          this.config.editorConfig.callbackUrl = this.config.editorConfig.callbackUrl + "/" + id;
43
+          console.log(this.config,"OOOOOOOOOOOOOOOOOOOOOOOOOOO");
44
+
42
           // this.config.callbackUrl = this.config.callbackUrl + `/${this.userId}`;
45
           // this.config.callbackUrl = this.config.callbackUrl + `/${this.userId}`;
43
           var docEditor = new DocsAPI.DocEditor("placeholder", this.config);
46
           var docEditor = new DocsAPI.DocEditor("placeholder", this.config);
44
         });
47
         });

+ 2
- 2
vue.config.js Просмотреть файл

11
 
11
 
12
 const port = process.env.port || process.env.npm_config_port || 80 // 端口
12
 const port = process.env.port || process.env.npm_config_port || 80 // 端口
13
 
13
 
14
-const API = 'http://121.40.189.20:7001'  //生产
15
-// const API = 'http://121.40.189.20:6001'  //测试
14
+// const API = 'http://121.40.189.20:7001'  //生产
15
+const API = 'http://121.40.189.20:6001'  //测试
16
 // const API = 'http://192.168.3.18:6001'  //B
16
 // const API = 'http://192.168.3.18:6001'  //B
17
 // const API = 'http://172.16.0.237:6001' //Q
17
 // const API = 'http://172.16.0.237:6001' //Q
18
 // const API = 'http://172.16.1.26:6001' //w
18
 // const API = 'http://172.16.1.26:6001' //w