diff --git a/tsconfig.json b/tsconfig.json index e9b1af70bca5bc9c77d9ce03b71c020903c2b0a7..7a7c1601b4b258e70f258ba23ea8f4f725becd35 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,11 @@ "resolveJsonModule": true, "esModuleInterop": true, "lib": ["esnext", "dom"], - "types": ["vite/client","@layui/layui-vue/types/components"] + "types": ["vite/client", "@layui/layui-vue/types/components"], + "baseUrl": "./", + "paths": { + "@/*": ["src/*"] + } }, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"] }