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(admin/questions): change delete question api with /admin/
haitao(lj)2811f9c2695a
diff --git a/ui/src/pages/Admin/Questions/index.tsx b/ui/src/pages/Admin/Questions/index.tsxindex 76a65de9..4169b840 100644--- a/ui/src/pages/Admin/Questions/index.tsx+++ b/ui/src/pages/Admin/Questions/index.tsx@@ -15,11 +15,7 @@ import {import { ADMIN_LIST_STATUS } from '@/common/constants';import { useEditStatusModal, useReportModal } from '@/hooks';import * as Type from '@/common/interface';-import {- useQuestionSearch,- changeQuestionStatus,- deleteQuestion,-} from '@/services';+import { useQuestionSearch, changeQuestionStatus } from '@/services';import '../index.scss';@@ -76,9 +72,7 @@ const Questions: FC = () => {confirmBtnVariant: 'danger',confirmText: t('delete', { keyPrefix: 'btns' }),onConfirm: () => {- deleteQuestion({- id,- }).then(() => {+ changeQuestionStatus(id, 'deleted').then(() => {refreshList();});},