2025年2月4日
摘要: 在vite.config.js/ts 中 export default defineConfig({ plugins: [ vue() ], resolve: { alias: { // 配置路径别名 使用@ 代替 ./src '@': fileURLToPath(new URL('./src', 阅读全文
posted @ 2025-02-04 22:18 贲风 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 在vite.conig.js/ts 中 1. fileURLToPath import { fileURLToPath } from 'url' export default defineConfig({ plugins: [ vue() ], resolve: { alias: { // 配置路径 阅读全文
posted @ 2025-02-04 22:16 贲风 阅读(82) 评论(0) 推荐(0) 编辑