This commit is contained in:
赵霄
2023-08-25 13:59:18 +08:00
parent f15b43d3f8
commit f2b4785c34
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -7,13 +7,13 @@
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
<!-- 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://47.92.92.38:8103/web-apps/apps/api/documents/api.js"></script>
<!-- 全局配置 -->
<% if (process.env.NODE_ENV === 'development' ) { %>
<script>
window._CONFIG = {
'documentUrl': 'http://10.10.10.46:8888/',
'callbackUrl': 'http://10.10.10.46:8001',
'documentUrl': 'http://39.98.140.126:18888/file/',
// 'callbackUrl': 'http://39.98.140.126:17211/',
'configUrl': 'http://localhost:8081/',
};
</script>
+2 -2
View File
@@ -5,8 +5,10 @@
</template>
<script>
let docEditor
const {location} = window
export default {
name: 'editor',
data() {
@@ -118,8 +120,6 @@ export default {
},
connectEditor() {
const nowTime = new Date().getTime()
console.log(this.documentUrl + this.$route.query.filePath + this.$route.query.fileName)
// console.log('connectEditor', 1233);
this.docEditor = new DocsAPI.DocEditor('iframeEditor', {
width: '100%',
height: '100%',