我的动作有以下设置:
get1: ({commit}) => {
//things
this.get2(); //this is my question!
},
get2: ({commit}) => {
//things
},
我希望能够从另一个内部调用一个动作,因此在此示例中,我希望能够get2()
从内部调用get1()
。这可能吗?如果可以,我该怎么办?
从另一个动作中调用一个动作
我的动作有以下设置:
get1: ({commit}) => {
//things
this.get2(); //this is my question!
},
get2: ({commit}) => {
//things
},
我希望能够从另一个内部调用一个动作,因此在此示例中,我希望能够get2()
从内部调用get1()
。这可能吗?如果可以,我该怎么办?
第408篇《从另一个动作中调用一个动作》来自Winter(https://github.com/aiyld/aiyld.github.io)的站点
相似问题
问题类别