소스 검색

一键删除

guhongwei 3 년 전
부모
커밋
16a119163f
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/store/patent/patentinfo.js

+ 5 - 0
src/store/patent/patentinfo.js

@@ -63,6 +63,11 @@ const actions = {
     const res = await this.$axios.$post(`${api.patentinfo}/updateUser`, payload);
     return res;
   },
+  // 批量删除
+  async deleteMany({ commit }, payload) {
+    const res = await this.$axios.$delete(`${api.patentinfo}/deleteMany`, null, payload);
+    return res;
+  },
 };
 export default {
   namespaced: true,