hotfix-从路由获取token存储到LocalStorage时新增token是否为空判断

This commit is contained in:
zhang.weiwei
2025-04-30 23:00:01 +08:00
parent a1895b540c
commit d13ce27e3c
11 changed files with 858 additions and 831 deletions

View File

@@ -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)
}