|
@@ -25,7 +25,7 @@ function getQueryVariable(variable) {
|
|
|
|
|
|
const state = {
|
|
|
openId: getQueryVariable('openId') || getStorage('openId') || '',
|
|
|
- token: getQueryVariable('x-token') || getStorage('token') || '',
|
|
|
+ token: getStorage('token') || getQueryVariable('x-token') || '',
|
|
|
name: getQueryVariable('username') || getStorage('name') || '',
|
|
|
avatar: getQueryVariable('useravatar') || getStorage('avatar') || '',
|
|
|
userId: getQueryVariable('userId') || getStorage('userId') || '',
|