Browse Source

代码结构整理

main
pixel 5 years ago
parent
commit
b1378d6cd0
  1. 18
      QMPlusVuePage/src/api/user.js
  2. 1
      QMPlusVuePage/src/view/login/login.vue

18
QMPlusVuePage/src/api/user.js

@ -77,20 +77,4 @@ export const setUserAuthority = (data) => {
method: 'post',
data: data
})
}
// @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
})
}
}

1
QMPlusVuePage/src/view/login/login.vue

@ -98,7 +98,6 @@ export default {
this.lock === 'lock' ? (this.lock = 'unlock') : (this.lock = 'lock')
},
loginVefify() {
console.log(this.logVerify)
captcha({}).then(ele=>{
this.picPath = ele.data.picPath
this.loginForm.captchaId = ele.data.captchaId

Loading…
Cancel
Save