guhongwei 2 năm trước cách đây
mục cha
commit
50176272ef
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      src/stores/patent/cpcMessage.ts

+ 6 - 1
src/stores/patent/cpcMessage.ts

@@ -39,6 +39,10 @@ export const CpcMessageStore = defineStore('cpcMessage', () => {
     const res = await axios.$delete(`${api.url}/${payload}`)
     return res
   }
+  const cimport = async (payload: any): Promise<IQueryResult> => {
+    const res = await axios.$post(`${api.url}/import`, payload)
+    return res
+  }
   return {
     count,
     doubleCount,
@@ -47,6 +51,7 @@ export const CpcMessageStore = defineStore('cpcMessage', () => {
     fetch,
     create,
     update,
-    del
+    del,
+    cimport
   }
 })