From 1461849c43bb8863dd4c76a5eb2414506eaaa35b Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 2 Dec 2025 12:11:01 +0800 Subject: [PATCH] fix: update notification properties and remove cssVar config --- config/config.ts | 1 - src/global.tsx | 2 +- src/requestErrorConfig.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config/config.ts b/config/config.ts index 9b714f0f..e2610976 100644 --- a/config/config.ts +++ b/config/config.ts @@ -117,7 +117,6 @@ export default defineConfig({ appConfig: {}, configProvider: { theme: { - cssVar: true, token: { fontFamily: 'AlibabaSans, sans-serif', }, diff --git a/src/global.tsx b/src/global.tsx index 6097b546..07b2aa90 100644 --- a/src/global.tsx +++ b/src/global.tsx @@ -66,7 +66,7 @@ if (pwa) { ); notification.open({ - message: useIntl().formatMessage({ id: 'app.pwa.serviceworker.updated' }), + title: useIntl().formatMessage({ id: 'app.pwa.serviceworker.updated' }), description: useIntl().formatMessage({ id: 'app.pwa.serviceworker.updated.hint', }), diff --git a/src/requestErrorConfig.ts b/src/requestErrorConfig.ts index ff356ebd..ebf46476 100644 --- a/src/requestErrorConfig.ts +++ b/src/requestErrorConfig.ts @@ -58,8 +58,8 @@ export const errorConfig: RequestConfig = { break; case ErrorShowType.NOTIFICATION: notification.open({ + title: errorCode, description: errorMessage, - message: errorCode, }); break; case ErrorShowType.REDIRECT: