vuedemo

# vuedemo1


> A Vue.js project


├── index.html


├── static  #静态资源


├── main.js


├── api


│   └── ... # 抽取出API请求


├── router  #路由模块


├── components


│   ├── App.vue


│   └── ...


├── utils        #工具类


│   ├── auth.js  # token --cookie 认证  


│   ├── http.js           #axios http 请求


│   └── localStorage.js   #本地存储数据


├── store


│   ├── store.js    # 我们组装模块并导出 store 的地方


│   ├── actions.js   # 根级别的 action


│   ├── mutations.js      # 根级别的 mutation


│   └── modules


│       └── user.js       # 用户模块


│     
├── views         #单页面模块   
           
│   ├── common  #单页面组件模块


│   └── page    #单页面应用模块   


│       
└   




## Build Setup


项目下载之后需要运行
npm install --registry=https://registry.npm.taobao.org


当这个命令运行完成以后会多出一个node_modules文件夹,里面就是项目所需的所有依赖




``` bash
# install dependencies
npm install


# serve with hot reload at localhost:8080
npm run dev


# build for production with minification
npm run build


# build for production and view the bundle analyzer report
npm run build --report


# run unit tests
npm run unit


# run e2e tests
npm run e2e


# run all tests
npm test
```


#图片懒加载
npm install vue-lazyload -S


#store 存储
npm install store -S


#cookie 操作
npm install js-cookie -S


#ele ui 
npm install element-ui -S


#axios  api 请求处理
npm install axios -S


#vue-router  vue 路由管理 
npm install vue-router -S


#three.js  特效
#特效是直接引用其JS




源码地址 https://gitee.com/ms-zhang/vuedemo.git



For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值