mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-15 15:16:45 +08:00
hotfix-从路由获取token存储到LocalStorage时新增token是否为空判断
This commit is contained in:
@@ -204,7 +204,9 @@ export default {
|
||||
//初始化信息
|
||||
async init() {
|
||||
if (this.isWeixin) {
|
||||
window.localStorage.setItem('token', this.$route.query.token)
|
||||
if (this.$route.query.token) {
|
||||
window.localStorage.setItem('token', this.$route.query.token)
|
||||
}
|
||||
if (this.$route.query.signInvalid) {
|
||||
sessionStorage.setItem('signInvalid', this.$route.query.signInvalid)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user