-
更换yarn源(可选操作项,如可翻墙,无需此步骤)
yarn config set registry 'https://registry.npm.taobao.org'
- 安装依赖,项目目录下执行
yarn
- 启动项目
npm start
5.浏览器访问: http://localhost:8080
- chrome安装插件 vue,vue performance
npm start
npm run build
npm run mock
npm run lint
npm run test
src
├─assets // 资源文件
│ ├─font
│ ├─images
│ ├─js
│ └─style
├─components // 共用组件
│ ├─business
│ └─common
├─http // 请求相关
├─mock // mock后端数据
├─pages
│ ├─about
│ │ └─components
│ └─home
├─store // 状态管理
│ └─modules
└─utils // 工具类