<script lang="ts" name="EquipmentResumeWeekDetail" setup> import templateDetail from './components/templateDetail.vue' const $route = useRoute() // 路由参数 const pageType = ref('detail') // 页面类型 const infoId = ref('') // id // -----------------------------------------------路由参数--------------------------------- if ($route.params && $route.params.type) { pageType.value = $route.params.type as string if ($route.params.id) { infoId.value = $route.params.id as string } } </script> <template> <template-detail title="周维护" :page-type-value="pageType" maintain-type="1" :info-id="infoId" /> </template>