代码优化
This commit is contained in:
@@ -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
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user