接口优化
This commit is contained in:
parent
5bd7eca8e8
commit
f14370ce9c
|
|
@ -63,7 +63,7 @@ export function resetUserPwdNwApi(userId, password) {
|
|||
password
|
||||
}
|
||||
return request({
|
||||
url: '/system/user/resetPwdByCode',
|
||||
url: '/system/user/reset',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
|
|
|
|||
|
|
@ -841,8 +841,6 @@ export default {
|
|||
})
|
||||
.then(({ value }) => {
|
||||
const password = encrypt(value)
|
||||
|
||||
|
||||
/* 判断当前环境是否为南网环境,如是则走南网接口 不是则走重庆接口 */
|
||||
const API_FUN = (process.env.VUE_APP_ENV === 'development-nw' || process.env.VUE_APP_ENV === 'production-nw')? resetUserPwdNwApi : resetUserPwdCqApi
|
||||
API_FUN(row.userId, password).then((response) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue