vue2+element-ui项目搭建完整过程

vue2+element-ui项目搭建完整过程步骤:

  • 1.使用命令新建vue项目
  • 2.引入element-ui项目配置
  • 3.引入vue-router
  • 4.引入axios相关配置
  • 5.引入less-loader相关配置

1.使用命令新建vue项目

(在这个过程中可直接引入vue-router)

vue init webpack vue项目名

2.引入element-ui项目配置

(可参考elementui官网)

3.引入vue-router

作用:实现页面间的跳转
方法一:在vue init webpack执行的过程中可引入
项目中相关配置如下:
https://blog.csdn.net/weixin_38345306/article/details/120777624

4.引入axios相关配置

(实现前后端请求)

解决跨域问题请参考:
https://blog.csdn.net/weixin_38345306/article/details/118912382

5.引入less-loader相关配置

可参考https://blog.csdn.net/weixin_38345306/article/details/120767926

你可能感兴趣的:(vue,vue.js,elementui)