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