@haitang-hub/dsh-3d-director-desk 0.3.13 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +5 -1
- package/package.json +1 -1
- package/site/assets/{editor-page-V4JLC_BO.js → editor-page-DEze0SQ5.js} +20 -20
- package/site/assets/{index-BMzlZBG5.js → index-BrGNuc_y.js} +208 -208
- package/site/assets/index-EeBy_jYk.css +1 -0
- package/site/index.html +2 -2
- package/site/assets/index-DgYQ1oik.css +0 -1
package/lib/client.js
CHANGED
|
@@ -263,8 +263,12 @@ window.__ModuleLoader__.load({
|
|
|
263
263
|
.finally(() => setBusy(false))
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
+
// 新窗口带 dshWindow=1:页面经同源 BroadcastChannel 跟随本 iframe 的共享设置、Harness 模型与实例。
|
|
266
267
|
const openExternal = () => {
|
|
267
|
-
if (info?.port)
|
|
268
|
+
if (!info?.port) return
|
|
269
|
+
const base = `${bridgeOrigin(info)}/${instanceId ? `director/editor?instanceId=${encodeURIComponent(instanceId)}` : ''}`
|
|
270
|
+
const query = `dshWindow=1&dshSettingsProject=${SHARED_PROJECT_ID}`
|
|
271
|
+
window.open(`${base}${base.includes('?') ? '&' : '?'}${query}`, '_blank', 'noopener')
|
|
268
272
|
}
|
|
269
273
|
|
|
270
274
|
return h('div', { style: SHELL_STYLE },
|