|
|
@@ -139,7 +139,7 @@ const scenes = ref<Scene[]>([]);
|
|
|
const hoverId = ref<string>('');
|
|
|
|
|
|
const activeId = ref<string>('');
|
|
|
-const props = defineProps<{ fire?: any, caseId?: number, editOrShow?: string }>();
|
|
|
+const props = defineProps<{ fire?: any, caseId?: number, fromRoute?: string, editOrShow?: string }>();
|
|
|
const activeScene = computed(() => {
|
|
|
return scenes.value.find((s: any) => String(s?.fusionId) === activeId.value) || null;
|
|
|
});
|
|
|
@@ -174,7 +174,7 @@ const handleImportClick = () => {
|
|
|
};
|
|
|
|
|
|
const onEdit = (scene: Scene) => {
|
|
|
- window.open(`${url}/code/index.html?caseId=${scene?.fusionId}&token=${user.value.token}#/fuseEdit/merge`, '_blank');
|
|
|
+ window.open(`${url}/code/index.html?caseId=${scene?.fusionId}&fromRoute=${import.meta.env.VITE_APP_APP}&token=${user.value.token}#/fuseEdit/merge`, '_blank');
|
|
|
};
|
|
|
|
|
|
const onDelete = async (scene: any) => {
|