Authored by yyq

header容错

@@ -182,6 +182,9 @@ const requestNavBar = (type) => { @@ -182,6 +182,9 @@ const requestNavBar = (type) => {
182 cache: true, 182 cache: true,
183 code: 200 183 code: 200
184 }).then(res => { 184 }).then(res => {
  185 + if (!res) {
  186 + return {};
  187 + }
185 return setHeaderData(res.data, type); 188 return setHeaderData(res.data, type);
186 }); 189 });
187 }; 190 };