<script lang="ts" setup>
|
import { computed } from 'vue';
|
|
import { getJnpfAppEnCode } from '#/utils/jnpf';
|
|
import childApp from './childApp/index.vue';
|
import dashboard from './dashboard/index.vue';
|
|
defineOptions({ name: 'Home' });
|
|
const appEnCode = getJnpfAppEnCode();
|
|
const getLayout = computed(() => {
|
return appEnCode ? childApp : dashboard;
|
});
|
</script>
|
|
<template>
|
<component :is="getLayout" />
|
</template>
|