mirror of https://gitee.com/answerdev/answer.git
commit
b6484c443b
|
@ -6,6 +6,7 @@ import { getSeoSetting, putSeoSetting } from '@/services';
|
||||||
import { SchemaForm, JSONSchema, initFormData, UISchema } from '@/components';
|
import { SchemaForm, JSONSchema, initFormData, UISchema } from '@/components';
|
||||||
import { useToast } from '@/hooks';
|
import { useToast } from '@/hooks';
|
||||||
import { handleFormError } from '@/utils';
|
import { handleFormError } from '@/utils';
|
||||||
|
import { seoSettingStore } from '@/stores';
|
||||||
|
|
||||||
const Index: FC = () => {
|
const Index: FC = () => {
|
||||||
const { t } = useTranslation('translation', {
|
const { t } = useTranslation('translation', {
|
||||||
|
@ -64,6 +65,7 @@ const Index: FC = () => {
|
||||||
msg: t('update', { keyPrefix: 'toast' }),
|
msg: t('update', { keyPrefix: 'toast' }),
|
||||||
variant: 'success',
|
variant: 'success',
|
||||||
});
|
});
|
||||||
|
seoSettingStore.getState().update(reqParams);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
if (err.isError) {
|
if (err.isError) {
|
||||||
|
|
|
@ -27,7 +27,7 @@ const SearchQuestion = ({ similarQuestions }) => {
|
||||||
<ListGroup.Item
|
<ListGroup.Item
|
||||||
action
|
action
|
||||||
as="a"
|
as="a"
|
||||||
className="link-dark"
|
className="d-flex align-items-center link-dark"
|
||||||
key={item.id}
|
key={item.id}
|
||||||
href={pathFactory.questionLanding(item.id, item.url_title)}
|
href={pathFactory.questionLanding(item.id, item.url_title)}
|
||||||
target="_blank">
|
target="_blank">
|
||||||
|
@ -38,7 +38,7 @@ const SearchQuestion = ({ similarQuestions }) => {
|
||||||
: null}
|
: null}
|
||||||
</span>
|
</span>
|
||||||
{item.accepted_answer ? (
|
{item.accepted_answer ? (
|
||||||
<span className="ms-3 text-success">
|
<span className="small ms-3 text-success">
|
||||||
<Icon type="bi" name="check-circle-fill" />
|
<Icon type="bi" name="check-circle-fill" />
|
||||||
<span className="ms-1">
|
<span className="ms-1">
|
||||||
{t('x_answers', {
|
{t('x_answers', {
|
||||||
|
@ -49,7 +49,7 @@ const SearchQuestion = ({ similarQuestions }) => {
|
||||||
</span>
|
</span>
|
||||||
) : (
|
) : (
|
||||||
item.answer_count > 0 && (
|
item.answer_count > 0 && (
|
||||||
<span className="ms-3 text-secondary">
|
<span className="small ms-3 text-secondary">
|
||||||
<Icon type="bi" name="chat-square-text-fill" />
|
<Icon type="bi" name="chat-square-text-fill" />
|
||||||
<span className="ms-1">
|
<span className="ms-1">
|
||||||
{t('x_answers', {
|
{t('x_answers', {
|
||||||
|
|
Loading…
Reference in New Issue