解决 头部“密码修改”菜单,因代码中接口url少了一个斜杠导致请求错误
parent
d92041fa37
commit
2db96af605
|
@ -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);
|
||||||
//关闭弹窗
|
//关闭弹窗
|
||||||
|
|
Loading…
Reference in New Issue