Commit fbeda824 by fukai
parents b2910816 cfbeb42c
...@@ -10,15 +10,15 @@ const mutations = { ...@@ -10,15 +10,15 @@ const mutations = {
* @returns * @returns
*/ */
ADD_OPERATE_FUN(state, funs) { ADD_OPERATE_FUN(state, funs) {
const id = Symbol("id"); const id = Symbol("transaction-id");
state.operateFuns[id] = funs; state.operateFuns[id] = funs;
return id; return id;
}, },
}; };
const actions = { const actions = {
setOperateFuns({ state }, funs) { setOperateFuns({ commit }, funs) {
state.commit("ADD_OPERATE_FUN", 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