@@ -72,8 +72,8 @@ function sureLogin(){
//核查权限数据保存
function cacheCheckDatas(data){
delCookie("checkAuth")
- const arr = data.map((it)=>{
+ const arr = data&&data.map((it)=>{
return it.id;
- });
+ })||[];
setCookie("checkAuth",arr.join(","));
}