diff --git a/QMPlusVuePage/src/api/user.js b/QMPlusVuePage/src/api/user.js index 8bd45341e7d33084f96d9a82505f938d50d317ad..6bc6b9ee3e98189cdfc973fb2c98643caf2c6fd2 100644 --- a/QMPlusVuePage/src/api/user.js +++ b/QMPlusVuePage/src/api/user.js @@ -23,7 +23,17 @@ export const regist = (data) => { data: data }) } - +// @Summary 修改密码 +// @Produce application/json +// @Param data body {username:"string",password:"string",newPassword:"string"} +// @Router /user/changePassword [post] +export const changePassword = (data) => { + return service({ + url: "/user/changePassword", + method: 'post', + data: data + }) +} // @Tags User // @Summary 分页获取用户列表 // @Security ApiKeyAuth diff --git a/QMPlusVuePage/src/view/layout/index.vue b/QMPlusVuePage/src/view/layout/index.vue index 22bf506b31dca5cf7121222ca34248dbd0e6d81e..96ece58a5f103c1be129272024d3ebc73bc04bd1 100644 --- a/QMPlusVuePage/src/view/layout/index.vue +++ b/QMPlusVuePage/src/view/layout/index.vue @@ -1,7 +1,7 @@