提交 c9fc3570 authored 作者: 王鹏飞's avatar 王鹏飞

fix: 修复修改密码报错的问题

上级 00d583ec
import BaseAPI from './base_api' import BaseAPI from './base_api'
import _ from 'lodash'
export default class OtherAPI extends BaseAPI { export default class OtherAPI extends BaseAPI {
/** /**
...@@ -64,7 +63,7 @@ export default class OtherAPI extends BaseAPI { ...@@ -64,7 +63,7 @@ export default class OtherAPI extends BaseAPI {
* @param {[string]} obj.service 这里 一直是定值 h5.ezijing.com * @param {[string]} obj.service 这里 一直是定值 h5.ezijing.com
*/ */
updatePwd = (obj = {}) => updatePwd = (obj = {}) =>
this.post('/api/usercenter/user/change-pwd-by-cookie', _.assignIn(obj, { service: 'h5.ezijing.com' }), { this.post('/api/usercenter/user/change-pwd-by-cookie', obj, {
headers: { 'Content-Type': 'application/x-www-form-urlencoded' } headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论