@@ -32,7 +32,7 @@ const UserLayout = () => {
3232 sessionStorage .setItem (" token" , data .token )
3333 sessionStorage .setItem (" auth" , JSON .stringify (data .authList || []))
3434 } else {
35- Notify .error ({ title: " 错误通知" , description: data .message || " 请求失败" })
35+ Notify .error ({ title: " 错误通知" , description: data? .message || " 请求失败" })
3636 }
3737 }}
3838 / >
@@ -61,7 +61,7 @@ const UserLayout = () => {
6161 sessionStorage .setItem (" token" , data .token )
6262 sessionStorage .setItem (" auth" , JSON .stringify (data .authList || []))
6363 } else {
64- Notify .error ({ title: " 错误通知" , description: data .message || " 请求失败" })
64+ Notify .error ({ title: " 错误通知" , description: data? .message || " 请求失败" })
6565 }
6666 }}
6767 / >
@@ -95,7 +95,7 @@ const UserLayout = () => {
9595 sessionStorage .setItem (" token" , data .token )
9696 sessionStorage .setItem (" auth" , JSON .stringify (data .authList || []))
9797 } else {
98- Notify .error ({ title: " 错误通知" , description: data .message || " 请求失败" })
98+ Notify .error ({ title: " 错误通知" , description: data? .message || " 请求失败" })
9999 }
100100 }}
101101 / >
@@ -128,7 +128,7 @@ const UserLayout = () => {
128128 sessionStorage .setItem (" token" , data .token )
129129 sessionStorage .setItem (" auth" , JSON .stringify (data .authList || []))
130130 } else {
131- Notify .error ({ title: " 错误通知" , description: data .message || " 请求失败" })
131+ Notify .error ({ title: " 错误通知" , description: data? .message || " 请求失败" })
132132 }
133133 }}
134134 / >
@@ -158,7 +158,7 @@ const UserLayout = () => {
158158 sessionStorage .setItem (" token" , data .token )
159159 sessionStorage .setItem (" auth" , JSON .stringify (data .authList || []))
160160 } else {
161- Notify .error ({ title: " 错误通知" , description: data .message || " 请求失败" })
161+ Notify .error ({ title: " 错误通知" , description: data? .message || " 请求失败" })
162162 }
163163 }}
164164 / >
@@ -202,7 +202,7 @@ const UserLayout = () => {
202202 sessionStorage .setItem (" token" , data .token )
203203 sessionStorage .setItem (" auth" , JSON .stringify (data .authList || []))
204204 } else {
205- Notify .error ({ title: " 错误通知" , description: data .message || " 请求失败" })
205+ Notify .error ({ title: " 错误通知" , description: data? .message || " 请求失败" })
206206 }
207207 }}
208208 / >
@@ -247,7 +247,7 @@ const UserLayout = () => {
247247 sessionStorage .setItem (" token" , data .token )
248248 sessionStorage .setItem (" auth" , JSON .stringify (data .authList || []))
249249 } else {
250- Notify .error ({ title: " 错误通知" , description: data .message || " 请求失败" })
250+ Notify .error ({ title: " 错误通知" , description: data? .message || " 请求失败" })
251251 }
252252 }}
253253 / >
@@ -285,7 +285,7 @@ const UserLayout = () => {
285285 sessionStorage .setItem (" token" , data .token )
286286 sessionStorage .setItem (" auth" , JSON .stringify (data .authList || []))
287287 } else {
288- Notify .error ({ title: " 错误通知" , description: data .message || " 请求失败" })
288+ Notify .error ({ title: " 错误通知" , description: data? .message || " 请求失败" })
289289 }
290290 }}
291291 / >
@@ -317,7 +317,7 @@ const UserLayout = () => {
317317 sessionStorage .setItem (" token" , data .token )
318318 sessionStorage .setItem (" auth" , JSON .stringify (data .authList || []))
319319 } else {
320- Notify .error ({ title: " 错误通知" , description: data .message || " 请求失败" })
320+ Notify .error ({ title: " 错误通知" , description: data? .message || " 请求失败" })
321321 }
322322 }}
323323 / >
@@ -347,7 +347,7 @@ const UserLayout = () => {
347347 sessionStorage .setItem (" token" , data .token )
348348 sessionStorage .setItem (" auth" , JSON .stringify (data .authList || []))
349349 } else {
350- Notify .error ({ title: " 错误通知" , description: data .message || " 请求失败" })
350+ Notify .error ({ title: " 错误通知" , description: data? .message || " 请求失败" })
351351 }
352352 }}
353353 / >
@@ -377,7 +377,7 @@ const UserLayout = () => {
377377 sessionStorage .setItem (" token" , data .token )
378378 sessionStorage .setItem (" auth" , JSON .stringify (data .authList || []))
379379 } else {
380- Notify .error ({ title: " 错误通知" , description: data .message || " 请求失败" })
380+ Notify .error ({ title: " 错误通知" , description: data? .message || " 请求失败" })
381381 }
382382 }}
383383 / >
0 commit comments