浏览代码

一键删除

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);
     const res = await this.$axios.$post(`${api.patentinfo}/updateUser`, payload);
     return res;
     return res;
   },
   },
+  // 批量删除
+  async deleteMany({ commit }, payload) {
+    const res = await this.$axios.$delete(`${api.patentinfo}/deleteMany`, null, payload);
+    return res;
+  },
 };
 };
 export default {
 export default {
   namespaced: true,
   namespaced: true,