Commit 5f8ba5ec authored by 刘帅阳's avatar 刘帅阳

30分钟未操作,退出登录,清除token

parent 01b09754
...@@ -27,18 +27,20 @@ export default { ...@@ -27,18 +27,20 @@ export default {
// this.$refs.scrollContainer.scrollTop = 1400 // this.$refs.scrollContainer.scrollTop = 1400
// } // }
if (!getToken()) { if (!getToken()) {
// if (val.query.uc) { if (val.query.uc) {
const params = 'asdfasdfasdf' const params = {
openApiLoginApi(params).then(res => { uc: val.query.uc
if (res.code === 200) { }
this.$store.dispatch('openApiLogin', res.data).then(() => { openApiLoginApi(params).then(res => {
this.$store.dispatch('GetInfo').then(() => { if (res.code === 200) {
this.$store.dispatch('openApiLogin', res.data).then(() => {
this.$store.dispatch('GetInfo').then(() => {
})
}) })
}) }
} })
}) }
// }
} }
}, },
// 深度观察监听 // 深度观察监听
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment