Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: seo setting update store data

shuaia400cd8d3813
diff --git a/ui/src/pages/Admin/Seo/index.tsx b/ui/src/pages/Admin/Seo/index.tsx
index a682fbaf..47f0262e 100644
--- a/ui/src/pages/Admin/Seo/index.tsx
+++ b/ui/src/pages/Admin/Seo/index.tsx
@@ -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) {