Commit fbeda824 by fukai
parents b2910816 cfbeb42c
......@@ -10,15 +10,15 @@ const mutations = {
* @returns
*/
ADD_OPERATE_FUN(state, funs) {
const id = Symbol("id");
const id = Symbol("transaction-id");
state.operateFuns[id] = funs;
return id;
},
};
const actions = {
setOperateFuns({ state }, funs) {
state.commit("ADD_OPERATE_FUN", funs);
setOperateFuns({ commit }, funs) {
commit("ADD_OPERATE_FUN", funs);
},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment