| | |
| | | <template> |
| | | <div class="sub-app"> |
| | | <WujieVue width="100%" height="100%" :name="name" :url="url" :alive="true" sync /> |
| | | <WujieVue width="100%" height="100%" v-bind="computedOptions" :degrade="true" :alive="true" sync /> |
| | | </div> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import { getUrl } from '@/utils/micors' |
| | | const router: any = useRouter() |
| | | const url = computed(() => getUrl(router.currentRoute.value.name)) |
| | | const name = computed(() => router.currentRoute.value.name) |
| | | import WujieVue from "wujie-vue3"; |
| | | import { useRoute } from 'vue-router' |
| | | import { computed } from 'vue' |
| | | |
| | | const route = useRoute() |
| | | const computedOptions = computed(() => { |
| | | return { |
| | | name: route.query.key, |
| | | url: route.query.url, |
| | | } |
| | | }) |
| | | </script> |
| | | <style scoped lang="scss"> |
| | | .sub-app { |