fix app office load error
This commit is contained in:
parent
03c0449a0b
commit
cece720f68
@ -44,8 +44,6 @@ export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
serverUrl: 'http://' + window.systemInformation.ippr + '.3/',
|
||||
|
||||
fileName: null,
|
||||
fileType: null,
|
||||
fileUrl: null,
|
||||
@ -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;
|
||||
},
|
||||
@ -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(() => {
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user