Browse Source

fix: update notification properties and remove cssVar config

pull/11594/head
afc163 4 months ago
parent
commit
60f1b6f3ad
  1. 1
      config/config.ts
  2. 2
      src/global.tsx
  3. 2
      src/requestErrorConfig.ts

1
config/config.ts

@ -117,7 +117,6 @@ export default defineConfig({
appConfig: {},
configProvider: {
theme: {
cssVar: true,
token: {
fontFamily: 'AlibabaSans, sans-serif',
},

2
src/global.tsx

@ -66,7 +66,7 @@ if (pwa) {
</Button>
);
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',
}),

2
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:

Loading…
Cancel
Save