接口优化

This commit is contained in:
BianLzhaoMin 2024-09-04 16:17:36 +08:00
parent 5bd7eca8e8
commit f14370ce9c
2 changed files with 1 additions and 3 deletions

View File

@ -63,7 +63,7 @@ export function resetUserPwdNwApi(userId, password) {
password password
} }
return request({ return request({
url: '/system/user/resetPwdByCode', url: '/system/user/reset',
method: 'put', method: 'put',
data: data data: data
}) })

View File

@ -841,8 +841,6 @@ export default {
}) })
.then(({ value }) => { .then(({ value }) => {
const password = encrypt(value) const password = encrypt(value)
/* 判断当前环境是否为南网环境,如是则走南网接口 不是则走重庆接口 */ /* 判断当前环境是否为南网环境,如是则走南网接口 不是则走重庆接口 */
const API_FUN = (process.env.VUE_APP_ENV === 'development-nw' || process.env.VUE_APP_ENV === 'production-nw')? resetUserPwdNwApi : resetUserPwdCqApi 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) => { API_FUN(row.userId, password).then((response) => {