diff --git a/QMPlusVuePage/src/api/user.js b/QMPlusVuePage/src/api/user.js index 6bc6b9ee3e98189cdfc973fb2c98643caf2c6fd2..375e3c7763ecc43fdd99aa908b17ee127037156f 100644 --- a/QMPlusVuePage/src/api/user.js +++ b/QMPlusVuePage/src/api/user.js @@ -65,4 +65,20 @@ export const setUserAuthority = (data) => { method: 'post', data: data }) -} \ No newline at end of file +} + +// @Tags User +// @Summary 验证码 +// @Security ApiKeyAuth +// @accept application/json +// @Produce application/json +// @Param data body api.SetUserAuth true "设置用户权限" +// @Success 200 {string} json "{"success":true,"data":{},"msg":"修改成功"}" +// @Router /user/setUserAuthority [post] +export const captcha = (data) => { + return service({ + url: "/base/captcha", + method: 'post', + data: data + }) +} diff --git a/QMPlusVuePage/src/view/login/login.vue b/QMPlusVuePage/src/view/login/login.vue index 99f5b554fff11335c9f9107126537f4b109cbf8e..0b7d168bd9263a00e39de03dfb9ea34693e82d31 100644 --- a/QMPlusVuePage/src/view/login/login.vue +++ b/QMPlusVuePage/src/view/login/login.vue @@ -16,6 +16,14 @@ + + + 请输入验证码 + 登 录 @@ -27,6 +35,8 @@