刘光辉
11 小时以前 0dfe84494048ce27ba8449831782128412d3eb13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<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>