Sfoglia il codice sorgente

fix: 修复ReSegmented和ReCountTo循环引用导致的白屏问题

index.ts中import './index'指向自身导致运行时"Cannot access before initialization"错误,改为显式导入./index.tsx

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
skyline 2 settimane fa
parent
commit
914818ec3c

+ 2 - 2
haha-admin-web/src/components/ReCountTo/index.ts

@@ -1,5 +1,5 @@
-// @ts-ignore - TSX import from .ts file
-import ReNormalCountTo from "./index";
+// @ts-nocheck
+import ReNormalCountTo from "./index.tsx";
 
 export { ReNormalCountTo };
 export default ReNormalCountTo;

+ 1 - 1
haha-admin-web/src/components/ReSegmented/index.ts

@@ -1,5 +1,5 @@
 // @ts-nocheck
-import ReSegmented from "./index";
+import ReSegmented from "./index.tsx";
 
 export type { OptionsType } from "./index.tsx";
 export default ReSegmented;