vite.config.ts 引入 import { resolve } from 'path'; 配置 resolve: { alias: [ { find: "@", replacement: resolve(__dirname, "./src") }, ] }, tsconfig.json "baseUrl": ".", "paths": { "@/*": ["src/*"] }