diff --git a/ui/src/pages/Admin/CssAndHtml/index.tsx b/ui/src/pages/Admin/CssAndHtml/index.tsx
index f2ec26dd..e309ae50 100644
--- a/ui/src/pages/Admin/CssAndHtml/index.tsx
+++ b/ui/src/pages/Admin/CssAndHtml/index.tsx
@@ -6,6 +6,7 @@ import { getPageCustom, putPageCustom } from '@/services';
import { SchemaForm, JSONSchema, initFormData, UISchema } from '@/components';
import { useToast } from '@/hooks';
import { handleFormError } from '@/utils';
+import { customizeStore } from '@/stores';
const Index: FC = () => {
const { t } = useTranslation('translation', {
@@ -68,7 +69,6 @@ const Index: FC = () => {
},
};
const [formData, setFormData] = useState(initFormData(schema));
-
const onSubmit = (evt) => {
evt.preventDefault();
evt.stopPropagation();
@@ -86,9 +86,7 @@ const Index: FC = () => {
msg: t('update', { keyPrefix: 'toast' }),
variant: 'success',
});
- setTimeout(() => {
- window.location.reload();
- }, 3000);
+ customizeStore.getState().update(reqParams);
})
.catch((err) => {
if (err.isError) {