忘记密码,确信(,另外加了个在编译的时候会去掉log,应该能编译成功吧
This commit is contained in:
@@ -154,12 +154,12 @@ export const changeUserName = async (name) => {
|
||||
* 用户请求修改密码(发送重置请求)
|
||||
* 路由: /user/resetpassword
|
||||
* 方法: POST
|
||||
* 需要登录
|
||||
* @param {string} uuid - 要修改的用户的uuid
|
||||
* @returns {Promise<void>} 无返回值,成功即为请求成功
|
||||
*/
|
||||
export const requestResetPassword = async () => {
|
||||
export const requestResetPassword = async (uuid) => {
|
||||
try {
|
||||
await axiosInstance.post('/user/resetpassword');
|
||||
await axiosInstance.post('/user/resetpassword', null, { params: { uuid } });
|
||||
} catch (error) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user