From 11812ec34931e78939e87effdc32a0d0b8d04b3b Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期三, 21 八月 2024 14:32:22 +0800 Subject: [PATCH] 提交 --- api/index.js | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/api/index.js b/api/index.js index 0a1a5a0..0d58ede 100644 --- a/api/index.js +++ b/api/index.js @@ -16,9 +16,9 @@ }) } -export function getUserInfo(id) { +export function getUserInfo() { return service({ - url: `/api/app/student/${id}`, + url: '/api/app/config/getConfigByUser', method: 'GET' }) } @@ -118,4 +118,13 @@ url: `/api/app/product/productSold/${productId}`, method: 'POST', }) +} + +// 重置密码 +export function resetPwd(data) { + return service({ + url: '/api/app/user/resetPwd', + method: 'PUT', + data + }) } \ No newline at end of file -- Gitblit v1.9.2