Browse Source

hr还原api

guhongwei 5 years ago
parent
commit
8a6c4a0e3b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/store/hr.js

+ 3 - 2
src/store/hr.js

@@ -24,8 +24,9 @@ export const actions = {
       let { tel } = data;
       result = await this.$axios.$get(api.hrImp, { id: tel });
     } else if (type === 'update') {
-      let { info, id } = data;
-      result = await this.$axios.$post(api.hrImp, info, { id: id });
+      let { info } = data;
+      let { passwd, id } = info;
+      result = await this.$axios.$post(api.hrImp, { passwd: passwd }, { id: id });
     } else {
       result = await this.$axios.$get(api.hr, { corpid: data });
     }