diff --git a/tsconfig.json b/tsconfig.json index bb211d7..e782d96 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,7 @@ "baseUrl": ".", "module": "esnext", "moduleResolution": "bundler", - // 非相对模块导入的路径映射配置,根据 baseUrl 配置进行路径计算 + // 非相对模块导入的路径映射配置,根据 baseUrl 配置进行路径计算,与 vite.config 中 alias 配置同步 "paths": { "@/*": ["src/*"], "@@/*": ["src/common/*"] diff --git a/vite.config.ts b/vite.config.ts index c03312e..0c88595 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -19,7 +19,7 @@ export default defineConfig(({ mode }) => { alias: { // @ 符号指向 src 目录 "@": resolve(__dirname, "src"), - // @@ 符号指向 src/common 目录 + // @@ 符号指向 src/common 通用目录 "@@": resolve(__dirname, "src/common") } },