Browse Source

fix(enums): 修复导入语句去掉文件扩展名

- 将 `from './enums/disability-type.enum.js'` 改为 `from './enums/disability-type.enum'`
- 统一所有枚举导入语句,去掉 `.js` 和 `.ts` 扩展名
- 解决 `yongren-talent-management-ui` 包编译错误

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

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname 1 month ago
parent
commit
605a2a7153
1 changed files with 4 additions and 4 deletions
  1. 4 4
      allin-packages/enums/src/index.ts

+ 4 - 4
allin-packages/enums/src/index.ts

@@ -10,7 +10,7 @@ export {
   DisabilityTypeLabels,
   getDisabilityTypeLabel,
   DISABILITY_TYPES
-} from './enums/disability-type.enum.js';
+} from './enums/disability-type.enum';
 
 // 导出残疾等级枚举及相关工具
 export {
@@ -18,7 +18,7 @@ export {
   DisabilityLevelLabels,
   getDisabilityLevelLabel,
   DISABILITY_LEVELS
-} from './enums/disability-level.enum.js';
+} from './enums/disability-level.enum';
 
 // 导出订单状态枚举及相关工具
 export {
@@ -28,7 +28,7 @@ export {
   getOrderStatusLabel,
   getOrderStatusDescription,
   ORDER_STATUSES
-} from './enums/order-status.enum.js';
+} from './enums/order-status.enum';
 
 // 导出工作状态枚举及相关工具
 export {
@@ -38,4 +38,4 @@ export {
   getWorkStatusLabel,
   getWorkStatusDescription,
   WORK_STATUSES
-} from './enums/work-status.enum.js';
+} from './enums/work-status.enum';