|
@@ -147,12 +147,16 @@ const activeScene = computed(() => {
|
|
|
return scenes.value.find((s: any) => String(s?.fusionId) === activeId.value) || null;
|
|
return scenes.value.find((s: any) => String(s?.fusionId) === activeId.value) || null;
|
|
|
});
|
|
});
|
|
|
const activeWebSite = ref('');
|
|
const activeWebSite = ref('');
|
|
|
|
|
+const current = router.currentRoute?.value;
|
|
|
|
|
+
|
|
|
watch(activeId, (newVal, oldVal) => {
|
|
watch(activeId, (newVal, oldVal) => {
|
|
|
if (newVal !== oldVal) {
|
|
if (newVal !== oldVal) {
|
|
|
if (isOfflineMode()) {
|
|
if (isOfflineMode()) {
|
|
|
activeWebSite.value = `./fusion_offline/${newVal}/www/offline.html?caseId=${newVal}&pure=1#/show/summary`;
|
|
activeWebSite.value = `./fusion_offline/${newVal}/www/offline.html?caseId=${newVal}&pure=1#/show/summary`;
|
|
|
} else {
|
|
} else {
|
|
|
- activeWebSite.value = `${url}/code/index.html?caseId=${activeScene.value?.fusionId}&pure=1&token=${user.value.token}#/show/summary`;
|
|
|
|
|
|
|
+ const sharePassword: any = current?.query?.p;
|
|
|
|
|
+ activeWebSite.value = `${url}/code/index.html?caseId=${activeScene.value?.fusionId}&pure=1&token=${user.value.token}&p=${sharePassword?'':''}#/show/summary`;
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}, { immediate: true })
|
|
}, { immediate: true })
|