|
@@ -24,9 +24,8 @@ export const actions = {
|
|
|
let { tel } = data;
|
|
|
result = await this.$axios.$get(api.hrImp, { id: tel });
|
|
|
} 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 {
|
|
|
result = await this.$axios.$get(api.hr, { corpid: data });
|
|
|
}
|