zs 9 месяцев назад
Родитель
Сommit
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,