You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
728 B

<template>
<IframeFile v-if="win.url" :src="win.url" :ext="win.ext" :eventType="win.eventType" />
<Suspense v-else>
<component v-if="win.content" :is="stepComponent(win.content)" :translateSavePath="translateSavePath" :componentID="win.windowInfo.componentID"></component>
<RouterView v-else />
</Suspense>
<!-- <component :is="window.content"></component> -->
</template>
<script setup lang="ts">
import { useRouter } from "vue-router";
import { stepComponent } from "@/util/stepComponent";
const router = useRouter();
const props = defineProps<{
win: any;
}>();
const win = ref(props.win)
const translateSavePath = inject('translateSavePath')
if (props.win.path) {
router.push(props.win.path);
}
</script>