zs преди 9 месеца
родител
ревизия
38fffe3c26
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      src/store/history.js

+ 4 - 0
src/store/history.js

@@ -33,6 +33,10 @@ const actions = {
     const res = await this.$axios.$delete(`${api.test}/${payload}`);
     return res;
   },
+  async clear({ commit }, payload) {
+    const res = await this.$axios.$delete(`${api.test}/clear/${payload}`);
+    return res;
+  },
 };
 export default {
   namespaced: true,