摘要:
vite.config.ts resolve.alias 配置 const path = require('path'); import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; // https://vi 阅读全文
摘要:
1.创建项目 npm init vite@latest 依次输入项目名称、选择vue、选择ts 2.引入依赖 cd 项目名称 npm install 3.启动项目 npm run dev 4.引入vue-router npm install vue-router@4 -S 在src目录下新建rout 阅读全文