浏览代码

清空历史记录

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,