diff --git a/ui/src/pages/result/index.tsx b/ui/src/pages/result/index.tsx
index 468482dd..ef057d8e 100644
--- a/ui/src/pages/result/index.tsx
+++ b/ui/src/pages/result/index.tsx
@@ -32,7 +32,6 @@ import { useAxios } from '@/utils/request'
import styles from './styles.module.less'
const { Search } = Input
-const { t } = useTranslation()
const Option = AutoComplete.Option
export const CustomDropdown = props => {
@@ -47,9 +46,7 @@ export const CustomDropdown = props => {
>
))}
@@ -58,7 +55,6 @@ export const CustomDropdown = props => {
}
const Result = () => {
- const { t } = useTranslation()
const location = useLocation()
const navigate = useNavigate()
const [pageData, setPageData] = useState()
@@ -76,6 +72,8 @@ const Result = () => {
getHistoryList('naturalHistory') || [],
)
+ const { t } = useTranslation()
+
function cacheNaturalHistory(key, val) {
const result = cacheHistory(key, val)
setNaturalOptions(result)