|
@@ -141,15 +141,12 @@ export default {
|
141
|
141
|
Init () { // 初始化
|
142
|
142
|
if (this.UserInfo === null) {
|
143
|
143
|
if (window.localStorage.niucaiusername && window.localStorage.niucaiuserpassword) {
|
144
|
|
- console.log('登录-------------------')
|
145
|
144
|
this.SignIn({ data: { password: md5(window.localStorage.niucaiuserpassword), userName: window.localStorage.niucaiusername } }).then((res) => { // 登录
|
146
|
|
- console.log('登录成功-------------------')
|
147
|
145
|
if (this.UserInfo === null) {
|
148
|
146
|
this.$router.push({ name: 'SignIn' })
|
149
|
147
|
} else {
|
150
|
148
|
this.GetFootballKeys() // 获取足彩相关字典
|
151
|
149
|
this.GetAllLotteryType({ queryData: { pageNum: 1, pageSize: 1000 } })
|
152
|
|
- console.log('触发页面请求-------------------')
|
153
|
150
|
this.$emit('UserInfoChange')
|
154
|
151
|
}
|
155
|
152
|
}).catch(() => {
|