解决 头部“密码修改”菜单,因代码中接口url少了一个斜杠导致请求错误

pull/170/head^2
zhangdaiscott 2022-10-12 17:54:13 +08:00
parent d92041fa37
commit 2db96af605
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@
setModalProps({ confirmLoading: true }); setModalProps({ confirmLoading: true });
// //
let params = Object.assign({ username: unref(username) }, values); let params = Object.assign({ username: unref(username) }, values);
defHttp.put({ url: 'sys/user/updatePassword', params }, { isTransformResponse: false }).then((res) => { defHttp.put({ url: '/sys/user/updatePassword', params }, { isTransformResponse: false }).then((res) => {
if (res.success) { if (res.success) {
$message.createMessage.success(res.message); $message.createMessage.success(res.message);
// //