在项目根目录中新建jsconfig.json 文件
写入一下代码
{ "compilerOptions": { "baseUrl": ".", "paths": { "@/*": [ "src/*" ] }, }, "include": [ "src/**/*" ], "exclude": [ "node_modules" ] }
然后重启
2024-03-06 22:53:02
在项目根目录中新建jsconfig.json 文件
写入一下代码
{ "compilerOptions": { "baseUrl": ".", "paths": { "@/*": [ "src/*" ] }, }, "include": [ "src/**/*" ], "exclude": [ "node_modules" ] }
然后重启