update
This commit is contained in:
+3
-3
@@ -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>
|
||||||
|
|||||||
@@ -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%',
|
||||||
|
|||||||
Reference in New Issue
Block a user