diff --git a/tsconfig.json b/tsconfig.json index f4b28f5..dcc7d46 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,6 +16,8 @@ "paths": { "@/*": ["src/*"] }, "resolveJsonModule": true, "types": ["vite/client", "element-plus/global"], + // 允许 JS + "allowJs": true, // TS 严格模式 "strict": true, "importHelpers": true,