Просмотр исходного кода

fix: 修复 ESM 导入路径并添加人才详情页 CSS 样式

- 为 company-module 和 disability-module 的 ES 模块导入添加 .js 扩展名以符合 Node 16+ ESM 规范
- 修复人才详情页缺失的渐变背景样式,添加 TalentDetail.css 导入

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname 2 дней назад
Родитель
Сommit
63386446dc

+ 4 - 4
allin-packages/company-module/src/index.ts

@@ -1,4 +1,4 @@
-export * from './routes/index';
-export * from './services/index';
-export * from './schemas/index';
-export { Company, Company as CompanyEntity } from './entities/index';
+export * from './routes/index.js';
+export * from './services/index.js';
+export * from './schemas/index.js';
+export { Company, Company as CompanyEntity } from './entities/index.js';

+ 3 - 3
allin-packages/company-module/src/routes/index.ts

@@ -1,4 +1,4 @@
 export * from './company.routes.js';
-export { default as companyStatisticsRoutes } from './company-statistics.route';
-export { default as companyRecentAllocationsRoutes } from './company-recent-allocations.route';
-export { default as companyEnterpriseRoutes } from './company-enterprise.routes';
+export { default as companyStatisticsRoutes } from './company-statistics.route.js';
+export { default as companyRecentAllocationsRoutes } from './company-recent-allocations.route.js';
+export { default as companyEnterpriseRoutes } from './company-enterprise.routes.js';

+ 4 - 4
allin-packages/disability-module/src/index.ts

@@ -1,11 +1,11 @@
 // 导出实体
-export { DisabledPerson, DisabledBankCard, DisabledPhoto, DisabledRemark, DisabledVisit, DisabledPersonGuardianPhone, DisabledPersonPhone } from './entities';
+export { DisabledPerson, DisabledBankCard, DisabledPhoto, DisabledRemark, DisabledVisit, DisabledPersonGuardianPhone, DisabledPersonPhone } from './entities/index.js';
 
 // 导出服务
-export { DisabledPersonService, AggregatedService } from './services';
+export { DisabledPersonService, AggregatedService } from './services/index.js';
 
 // 导出路由
-export { disabledPersonRoutes, personExtensionRoutes, talentPersonalInfoRoutes } from './routes';
+export { disabledPersonRoutes, personExtensionRoutes, talentPersonalInfoRoutes } from './routes/index.js';
 
 // 导出Schema
-export * from './schemas';
+export * from './schemas/index.js';

+ 7 - 7
allin-packages/disability-module/src/routes/index.ts

@@ -1,9 +1,9 @@
-export { default as disabledPersonCustomRoutes } from './disabled-person-custom.routes';
-export { disabledPersonCrudRoutes } from './disabled-person-crud.routes';
-export { default as aggregatedRoutes } from './aggregated.routes';
-export { disabledPersonRoutes, default as default } from './disabled-person.routes';
-export { default as personExtensionRoutes } from './person-extension.route';
-export { default as talentPersonalInfoRoutes } from './talent-personal-info.routes';
+export { default as disabledPersonCustomRoutes } from './disabled-person-custom.routes.js';
+export { disabledPersonCrudRoutes } from './disabled-person-crud.routes.js';
+export { default as aggregatedRoutes } from './aggregated.routes.js';
+export { disabledPersonRoutes, default as default } from './disabled-person.routes.js';
+export { default as personExtensionRoutes } from './person-extension.route.js';
+export { default as talentPersonalInfoRoutes } from './talent-personal-info.routes.js';
 // 导出前端专用的路由类型定义(不包含服务端依赖)
 export type {
   PersonExtensionRoutes,
@@ -18,4 +18,4 @@ export type {
   CompanyPersonListItem,
   CompanyPersonListResponse,
   CompanyPersonDetail
-} from './person-extension.types';
+} from './person-extension.types.js';

+ 1 - 0
mini/src/pages/yongren/talent/detail/index.tsx

@@ -1,6 +1,7 @@
 import React, { useEffect, useState } from 'react'
 import { View, Text, ScrollView, Video } from '@tarojs/components'
 import Taro from '@tarojs/taro'
+import './TalentDetail.css'
 import { useQuery } from '@tanstack/react-query'
 import { PageContainer } from '@d8d/mini-shared-ui-components/components/page-container'
 import { Navbar } from '@d8d/mini-shared-ui-components/components/navbar'