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

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

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