07 2019 档案

摘要:1.新建store.js,创建store对象,并且相应配置 2.在入口index.js文件里面:new Vue对象里注入store 3.在组件内部可以通过this.$store获取项目中的store对象 阅读全文
posted @ 2019-07-21 09:29 haines 阅读(450) 评论(0) 推荐(0)
摘要:1- 安装vue-router 2-书写路由配置js文件 3-入口index.js文件中注入 4-设置路由出口:<router-view/> 阅读全文
posted @ 2019-07-19 17:23 haines 阅读(270) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-07-19 16:23 haines 阅读(529) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-07-15 16:23 haines 阅读(167) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-07-15 16:20 haines 阅读(105) 评论(0) 推荐(0)