代码优化

This commit is contained in:
dqjdda
2019-10-25 18:16:20 +08:00
parent 53554fd728
commit d927282717
3 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ export function getInfo() {
export function getCodeImg() {
return request({
url: 'auth/vCode',
url: 'auth/code',
method: 'get'
})
}

View File

@@ -81,7 +81,7 @@ service.interceptors.response.use(
if (errorMsg !== undefined) {
Notification.error({
title: errorMsg,
duration: 2500
duration: 3000
})
}
}

View File

@@ -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
})
},