From a6f262849d9502adad2c7dadddac95cbac7e36f1 Mon Sep 17 00:00:00 2001 From: klausY Date: Tue, 17 Mar 2020 17:12:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QMPlusVuePage/src/api/user.js | 18 ++++++++++++- QMPlusVuePage/src/view/login/login.vue | 35 +++++++++++++++++++++++--- QMPlusVuePage/vue.config.js | 2 +- 3 files changed, 50 insertions(+), 5 deletions(-) diff --git a/QMPlusVuePage/src/api/user.js b/QMPlusVuePage/src/api/user.js index 6bc6b9ee..375e3c77 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 99f5b554..0b7d168b 100644 --- a/QMPlusVuePage/src/view/login/login.vue +++ b/QMPlusVuePage/src/view/login/login.vue @@ -16,6 +16,14 @@ + + + 请输入验证码 + 登 录 @@ -27,6 +35,8 @@