diff --git a/src/api/system/user.js b/src/api/system/user.js index 6b2f169..51fc69a 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -63,7 +63,7 @@ export function resetUserPwdNwApi(userId, password) { password } return request({ - url: '/system/user/resetPwdByCode', + url: '/system/user/reset', method: 'put', data: data }) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 977d576..3973303 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -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) => {