0
在authClient.js自定義通知,狀態403
if (type === AUTH_ERROR) {
const { status } = params;
if (status === 401) {
localStorage.removeItem('token');
return Promise.reject();
}
if (status === 403) {
// Show custom notification here on the Snackbar
}
return Promise.resolve();
}
如何做顯示自定義通知任何提示,將不勝感激。
它需要一個'showNotification'來觸發通知,所以一個自定義的傳奇就是要走的路。 – wesley6j