guhongwei 2 years ago
parent
commit
bcfca33174
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/stores/admins/company.ts

+ 7 - 1
src/stores/admins/company.ts

@@ -43,6 +43,11 @@ export const CompanyStore = defineStore('company', () => {
     const res = await axios.$post(`${api.url}/login`, payload)
     return res
   }
+  //password
+  const rp = async (payload: any): Promise<IQueryResult> => {
+    const res = await axios.$post(`${api.url}/rp`, payload)
+    return res
+  }
   return {
     count,
     doubleCount,
@@ -52,6 +57,7 @@ export const CompanyStore = defineStore('company', () => {
     create,
     update,
     del,
-    login
+    login,
+    rp
   }
 })