-
http://pastebin.com/zGfuqwxw
this.callMethod
-
使用vuex2,因为把数据源的回调也放在store.js中,在回调中修改state的代码
```
Vue.set(store.state.history.monthWeights, 1, 10)
```
在View上边获取
```
computed: {
weekWeights: function(){
return this.$store.state.history.weekW…
mokai updated
7 years ago
-
vue-router2相关文档都已经完成了,但是vuex怎么没有呢,是考虑vue不是必须升级所以才延缓翻译么
-
i can not run the [very basic start example](http://rc.vuejs.org/guide/index.html#Declarative-Rendering)
from the [Note-on-NPM-Builds](http://rc.vuejs.org/guide/installation.html#Note-on-NPM-Builds),…
-
actionsA.js
```
export const progress = ({
commit
}, num) => {
commit(types.GLOBAL_PROGRESS, num)
}
```
actionsB.js
```
export const getData = ({
commit
}) => {
console.log('getData'…
-
Hi, you can remove VueFire [in this way](https://github.com/niallobrien/Vue-Vuex-Firebase/commit/99f042aeb37945a423619cf9dcbcbda2d0e2d250).
It would be nice to [keep the getters and the actions with…
-
first part router config:
![1](https://cloud.githubusercontent.com/assets/10168476/19196548/97790cda-8ce8-11e6-8983-baa09b0ed6f0.png)
second part App.vue watch $route code
![2](https://cloud.githubuse…