Browse Source

修改读取本地存储的用户信息为空造成的bug

zhanghe 7 years ago
parent
commit
e3b8d317a9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/utils/helper.js

+ 1 - 0
src/utils/helper.js

@@ -17,6 +17,7 @@ export function getLocalUser() {
   if (localUser && localUser !== 'undefined') {
   if (localUser && localUser !== 'undefined') {
     return JSON.parse(localUser);
     return JSON.parse(localUser);
   }
   }
+  return {};
 }
 }
 
 
 /**
 /**