fix: seo setting update store data

This commit is contained in:
shuai 2023-08-29 10:59:51 +08:00
parent 8f471d96e9
commit a400cd8d38
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import { getSeoSetting, putSeoSetting } from '@/services';
import { SchemaForm, JSONSchema, initFormData, UISchema } from '@/components';
import { useToast } from '@/hooks';
import { handleFormError } from '@/utils';
import { seoSettingStore } from '@/stores';
const Index: FC = () => {
const { t } = useTranslation('translation', {
@ -64,6 +65,7 @@ const Index: FC = () => {
msg: t('update', { keyPrefix: 'toast' }),
variant: 'success',
});
seoSettingStore.getState().update(reqParams);
})
.catch((err) => {
if (err.isError) {