代码优化

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() { export function getCodeImg() {
return request({ return request({
url: 'auth/vCode', url: 'auth/code',
method: 'get' method: 'get'
}) })
} }

View File

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

View File

@@ -79,7 +79,7 @@ export default {
methods: { methods: {
getCode() { getCode() {
getCodeImg().then(res => { getCodeImg().then(res => {
this.codeUrl = 'data:image/gif;base64,' + res.img this.codeUrl = res.img
this.loginForm.uuid = res.uuid this.loginForm.uuid = res.uuid
}) })
}, },