给更多页添加头部和底部并修改本地userid

This commit is contained in:
熊丽君
2021-08-25 11:37:15 +08:00
parent d4417af232
commit febfa87c94
13 changed files with 440 additions and 250 deletions

View File

@ -25,7 +25,7 @@ const user = {
},
SET_USER_ID: (state, userId) => {
state.userId = userId;
localStorage.setItem('userId', userId);
localStorage.setItem('web-userId', userId);
},
SET_AVATAR: (state, avatar) => {
state.avatar = avatar;