解决 头部“密码修改”菜单,因代码中接口url少了一个斜杠导致请求错误
parent
d92041fa37
commit
2db96af605
|
@ -57,7 +57,7 @@
|
|||
setModalProps({ confirmLoading: true });
|
||||
//提交表单
|
||||
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) {
|
||||
$message.createMessage.success(res.message);
|
||||
//关闭弹窗
|
||||
|
|
Loading…
Reference in New Issue