Browse Source

修改HR接口配置

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

+ 2 - 3
src/store/hr.js

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