From f14370ce9cf2d1d0bc99b0186cafd513db95c6c9 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 4 Sep 2024 16:17:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user.js | 2 +- src/views/system/user/index.vue | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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) => {