Parcourir la source

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

zhanghe il y a 7 ans
Parent
commit
e3b8d317a9
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/utils/helper.js

+ 1 - 0
src/utils/helper.js

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