1234567891011121314151617181920212223 |
- <template>
- <component :is="currentCity" />
- </template>
- <script lang="tsx" setup name="orderAccept">
- import { defineAsyncComponent, computed } from 'vue';
- import { getCurrentCityConfig } from '@/utils/appConfig';
- // 引入组件
- const YiBin = defineAsyncComponent(() => import('@/views/todo/seats/accept/ybAccept.vue')); // 宜宾工单受理
- const ZiGong = defineAsyncComponent(() => import('@/views/todo/seats/accept/zgAccept.vue')); // 自贡工单受理
- const { city } = getCurrentCityConfig();
- const COMPONENT_LIST = {
- YiBin,
- ZiGong,
- };
- // 当前地州市
- const currentCity = computed(() => {
- return COMPONENT_LIST[city];
- });
- </script>
|