Commit d9272827 by dqjdda

代码优化

parent 53554fd7
......@@ -22,7 +22,7 @@ export function getInfo() {
export function getCodeImg() {
return request({
url: 'auth/vCode',
url: 'auth/code',
method: 'get'
})
}
......@@ -81,7 +81,7 @@ service.interceptors.response.use(
if (errorMsg !== undefined) {
Notification.error({
title: errorMsg,
duration: 2500
duration: 3000
})
}
}
......
......@@ -79,7 +79,7 @@ export default {
methods: {
getCode() {
getCodeImg().then(res => {
this.codeUrl = 'data:image/gif;base64,' + res.img
this.codeUrl = res.img
this.loginForm.uuid = res.uuid
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment