摘要: vite.config.ts resolve.alias 配置 const path = require('path'); import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; // https://vi 阅读全文
posted @ 2022-06-20 16:46 挥不去的执念 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2022-06-20 16:27 挥不去的执念 阅读(734) 评论(0) 推荐(0) 编辑