You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
581 B
581 B
配置前端环境
检查node版本
npm -v
10.9.2
安装Vite
npm create vite@latest my-vue-app
此时vite会提示你选择 1️⃣Select a framework 👉 选择 Vue 2️⃣ Select a variant 👉 选择 TypeScript
然后安装pnpm
npm install -g pnpm
检查是否安装成功
pnpm -v
进入项目(项目我已经建好了,上传到项目里了)
cd Front/unilife
安装Axios
pnpm add axios
用来连接前后端
安装veeValidate
pnpm add vee-validate
pnpm install yup
用于表单验证