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"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title> <title><%= htmlWebpackPlugin.options.title %></title>
<!-- onlyOffice服务器地址--> <!-- 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' ) { %> <% if (process.env.NODE_ENV === 'development' ) { %>
<script> <script>
window._CONFIG = { window._CONFIG = {
'documentUrl': 'http://10.10.10.46:8888/', 'documentUrl': 'http://39.98.140.126:18888/file/',
'callbackUrl': 'http://10.10.10.46:8001', // 'callbackUrl': 'http://39.98.140.126:17211/',
'configUrl': 'http://localhost:8081/', 'configUrl': 'http://localhost:8081/',
}; };
</script> </script>
+2 -2
View File
@@ -5,8 +5,10 @@
</template> </template>
<script> <script>
let docEditor let docEditor
const {location} = window const {location} = window
export default { export default {
name: 'editor', name: 'editor',
data() { data() {
@@ -118,8 +120,6 @@ export default {
}, },
connectEditor() { connectEditor() {
const nowTime = new Date().getTime() 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', { this.docEditor = new DocsAPI.DocEditor('iframeEditor', {
width: '100%', width: '100%',
height: '100%', height: '100%',