Showing
2 changed files
with
1 additions
and
2 deletions
| ... | ... | @@ -4351,7 +4351,7 @@ App.prototype.loadFile = function (id, sameWindow, file, success, force) { |
| 4351 | 4351 | if (success != null) |
| 4352 | 4352 | success() |
| 4353 | 4353 | // TODO Thingskkit socket连接 |
| 4354 | - if (result?.templateId) { | |
| 4354 | + if (!result?.isTemplate) { | |
| 4355 | 4355 | const lightboxWebsocketService = useLightboxModeService(this) |
| 4356 | 4356 | this.lightboxWebsocketService = lightboxWebsocketService |
| 4357 | 4357 | this.lightboxWebsocketService?.init?.() | ... | ... |
| ... | ... | @@ -73,7 +73,6 @@ const handleGetVideoPlay = async () => { |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | const instance = unref(basicVideoPlayEl)?.customInit((options) => { |
| 76 | - withToken.value = true | |
| 77 | 76 | if (unref(withToken)) { |
| 78 | 77 | (options as any).flvjs.config.headers = { |
| 79 | 78 | 'X-Authorization': `Bearer ${isShareMode() ? getShareJwtToken() : getJwtToken()}`, | ... | ... |