소스 검색

清空历史记录

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,