mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-16 23:53:48 +08:00
Rx goods supported / Product detail multi-specification added / "window" in fetch removed
This commit is contained in:
@@ -29,12 +29,13 @@ const mutations = {
|
||||
logoutSystem(state) {
|
||||
localStorage.removeItem('userInfo')
|
||||
},
|
||||
checkIsLogin() {
|
||||
checkIsLogin(state) {
|
||||
let rawUserInfoStr = localStorage.getItem('userInfo');
|
||||
let rawUserInfo = JSON.parse(rawUserInfoStr);
|
||||
if(rawUserInfo && rawUserInfo.hasOwnProperty('xaccessToken') && rawUserInfo['xaccessToken'].length>36)
|
||||
return rawUserInfo;
|
||||
return false;
|
||||
state.userInfo = rawUserInfo;
|
||||
else
|
||||
state.userInfo = undefined;
|
||||
},
|
||||
changemessage(state, val) {
|
||||
localStorage.setItem('message', val.data);
|
||||
|
||||
Reference in New Issue
Block a user