perf: axios default error interceptor allows you to customize error handling (#4283)

This commit is contained in:
Vben
2024-08-30 22:06:02 +08:00
committed by GitHub
parent cc678a2b51
commit b3e3e05990
6 changed files with 10 additions and 9 deletions

View File

@@ -76,7 +76,8 @@ function handleNotice(versionTag: string) {
ToastAction,
{
altText: $t('common.refresh'),
class: 'bg-primary hover:bg-primary-hover mx-1',
class:
'bg-primary text-primary-foreground hover:bg-primary-hover mx-1',
onClick: () => {
lastVersionTag.value = versionTag;
window.location.reload();