提交 c088d8e1 authored 作者: lihuihui's avatar lihuihui

修改bug

上级 bf036e78
import cAction from '@action' // import cAction from '@action'
import { Message } from 'element-ui' // import { Message } from 'element-ui'
export default class Before { export default class Before {
constructor (opt) { constructor (opt) {
...@@ -23,12 +23,13 @@ export default class Before { ...@@ -23,12 +23,13 @@ export default class Before {
/* 获取用户信息 */ /* 获取用户信息 */
isLogin () { isLogin () {
if (window.G.UserInfo) return true if (window.G.UserInfo) return true
return cAction.Test.getInfo().then(res => { return true
window.G.UserInfo = res // return cAction.Test.getInfo().then(res => {
return true // window.G.UserInfo = res
}).catch(res => { // return true
Message({ type: 'error', message: res.message }) // }).catch(res => {
return false // Message({ type: 'error', message: res.message })
}) // return false
// })
} }
} }
...@@ -30,7 +30,7 @@ export default { ...@@ -30,7 +30,7 @@ export default {
color: #999999; color: #999999;
line-height: 33px; line-height: 33px;
margin-top: 30px; margin-top: 30px;
white-space: nowrap; white-space: nowrap;
} }
} }
.img-certificate{ .img-certificate{
......
...@@ -23,7 +23,7 @@ export default { ...@@ -23,7 +23,7 @@ export default {
}, },
data() { data() {
return { return {
step: 1, step: 0,
info: {}, info: {},
certImg: '', certImg: '',
breadText: '' breadText: ''
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论