修改预览
This commit is contained in:
@@ -154,7 +154,7 @@
|
||||
console.log('断开了:' + err)
|
||||
self.connection()
|
||||
}
|
||||
}, 10000)
|
||||
}, 5000)
|
||||
},
|
||||
websocketOnerror: function(e) {
|
||||
console.log('WebSocket连接发生错误')
|
||||
|
||||
@@ -84,9 +84,8 @@ const user = {
|
||||
Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000)
|
||||
Vue.ls.set(USER_NAME, userInfo.username, 7 * 24 * 60 * 60 * 1000)
|
||||
Vue.ls.set(USER_INFO, userInfo, 7 * 24 * 60 * 60 * 1000)
|
||||
window._CONFIG['domianPreviewURL'] = result.domianWebSocketURL+'/jero-boot'
|
||||
window._CONFIG['domianWebSocketURL'] = result.domianWebSocketURL+'/jero-boot'
|
||||
window._CONFIG['onlinePreviewDomainURL'] = result.onlinePreviewDomainURL+'/onlinePreview'
|
||||
Vue.ls.set('domianWebSocketURL', result.domianWebSocketURL)
|
||||
Vue.ls.set('onlinePreviewDomainURL', result.onlinePreviewDomainURL)
|
||||
commit('SET_TOKEN', result.token)
|
||||
commit('SET_INFO', userInfo)
|
||||
commit('SET_NAME', { username: userInfo.username, realname: userInfo.realname, welcome: welcome() })
|
||||
@@ -132,6 +131,9 @@ const user = {
|
||||
const menuData = response.result.menu
|
||||
const authData = response.result.auth
|
||||
const allAuthData = response.result.allAuth
|
||||
window._CONFIG['domianPreviewURL'] = Vue.ls.get('domianWebSocketURL') + '/jero-boot'
|
||||
window._CONFIG['domianWebSocketURL'] = Vue.ls.get('domianWebSocketURL') + '/jero-boot'
|
||||
window._CONFIG['onlinePreviewDomainURL'] = Vue.ls.get('onlinePreviewDomainURL') + '/onlinePreview'
|
||||
const onlinePreviewDomainURL = response.result.onlinePreviewDomainURL
|
||||
const domianWebSocketURL = response.result.domianWebSocketURL
|
||||
//Vue.ls.set(USER_AUTH,authData);
|
||||
|
||||
@@ -247,8 +247,6 @@
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||
console.log(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
downloadFile('/sys/common/download', fileQuery.fileName, { id: fileQuery.id })
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user