Showing
1 changed file
with
3 additions
and
0 deletions
@@ -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 | }; |
-
Please register or login to post a comment