关于vue.js:vue实例项目

1次阅读

共计 331 个字符,预计需要花费 1 分钟才能阅读完成。

一、装置我的项目

创立我的项目

 yarn create vite

选项的抉择如下:

cd router // 到我的项目地位
yarn // 装置依赖包
yarn dev 启动我的项目 

装置路由

yarn add vue-router@4

路由官网:https://router.vuejs.org/zh/i…

装置 path 插件

yarn add -D path

装置类型申明

yarn add -D @types/node

yarn add lodash
yarn add -D @types/lodash

yarn add -D tailwindcss postcss autoprefixer
npx tailwindcss init -p // 省城配置文件

mock.js

yarn add mockjs
yarn add vite-plugin-mock -D

正文完
 0