...
|
...
|
@@ -4351,9 +4351,11 @@ App.prototype.loadFile = function (id, sameWindow, file, success, force) { |
4351
|
4351
|
if (success != null)
|
4352
|
4352
|
success()
|
4353
|
4353
|
// TODO Thingskkit socket连接
|
4354
|
|
- const lightboxWebsocketService = useLightboxModeService(this)
|
4355
|
|
- this.lightboxWebsocketService = lightboxWebsocketService
|
4356
|
|
- this.lightboxWebsocketService?.init?.()
|
|
4354
|
+ if (result?.templateId) {
|
|
4355
|
+ const lightboxWebsocketService = useLightboxModeService(this)
|
|
4356
|
+ this.lightboxWebsocketService = lightboxWebsocketService
|
|
4357
|
+ this.lightboxWebsocketService?.init?.()
|
|
4358
|
+ }
|
4357
|
4359
|
}
|
4358
|
4360
|
|
4359
|
4361
|
handleLoadContent()
|
...
|
...
|
@@ -5137,7 +5139,7 @@ App.prototype.addPreviewButton = function () { |
5137
|
5139
|
this.previewButton.style.border = '1px solid transparent'
|
5138
|
5140
|
this.previewButton.style.color = '#fff'
|
5139
|
5141
|
|
5140
|
|
- const icon = document.createElement('img')
|
|
5142
|
+ const icon = document.createElement('img')
|
5141
|
5143
|
icon.setAttribute('src', this.previewImage)
|
5142
|
5144
|
icon.setAttribute('align', 'absmiddle')
|
5143
|
5145
|
icon.style.marginRight = '4px'
|
...
|
...
|
|