Skip to content

Commit

Permalink
fix app office load error
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaifan committed Dec 11, 2021
1 parent 03c0449 commit cece720
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions resources/assets/js/components/OnlyOffice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ export default {
data() {
return {
serverUrl: 'http://' + window.systemInformation.ippr + '.3/',
fileName: null,
fileType: null,
fileUrl: null,
Expand All @@ -72,7 +70,7 @@ export default {
watch: {
value: {
handler(val) {
this.fileUrl = this.serverUrl + 'api/file/content/?id=' + val.id + '&token=' + this.userToken;
this.fileUrl = 'http://nginx/api/file/content/?id=' + val.id + '&token=' + this.userToken;
this.fileType = this.getType(val.type);
this.fileName = val.name;
},
Expand Down Expand Up @@ -140,7 +138,7 @@ export default {
"id": this.userInfo.userid,
"name": this.userInfo.nickname
},
"callbackUrl": this.serverUrl + 'api/file/content/office?id=' + this.value.id + '&token=' + this.userToken,
"callbackUrl": 'http://nginx/api/file/content/office?id=' + this.value.id + '&token=' + this.userToken,
}
};
this.$nextTick(() => {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/main.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script src="{{ asset_main('js/scroll-into-view.min.js') }}"></script>
<script>
window.csrfToken = { csrfToken : "{{ csrf_token() }}" };
window.systemInformation = { version : "{{ $version }}", origin: window.location.origin + "/", apiUrl: null, ippr: "{{ env('APP_IPPR') }}" };
window.systemInformation = { version : "{{ $version }}", origin: window.location.origin + "/", apiUrl: null };
</script>
</head>
<body>
Expand Down

0 comments on commit cece720

Please sign in to comment.