Kaynağa Gözat

一键删除

guhongwei 3 yıl önce
ebeveyn
işleme
16a119163f
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  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,