Skip to content

Commit aac5f04

Browse files
committed
Fixed show store module
1 parent e14cc71 commit aac5f04

File tree

1 file changed

+4
-1
lines changed
  • templates/vue/store/modules/foo

1 file changed

+4
-1
lines changed

templates/vue/store/modules/foo/show.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function retrieved(commit, retrieved) {
2323
return commit({{{ uc }}}_SHOW_RETRIEVED_SUCCESS, retrieved);
2424
}
2525

26-
function reset() {
26+
function reset(commit) {
2727
return commit({{{ uc }}}_SHOW_RESET);
2828
}
2929

@@ -47,6 +47,9 @@ const actions = {
4747
loading(commit, false);
4848
error(commit, e.message);
4949
});
50+
},
51+
reset({ commit }) {
52+
reset(commit);
5053
}
5154
};
5255

0 commit comments

Comments
 (0)