feat(mock): create mock infrastructure with USE_MOCK switch

This commit is contained in:
jacobxu666
2026-06-26 09:58:09 +08:00
parent e739c061c4
commit ce729704f8
8 changed files with 142 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
/** Mock 数据开关 — 由 .env 文件的 VITE_USE_MOCK 控制 */
export const USE_MOCK = import.meta.env.VITE_USE_MOCK === 'true'