Fix: Fixed the issue where the detail request failed in the search function.

This commit is contained in:
chanx 2025-12-08 10:36:43 +08:00
parent ec02428dbd
commit c9484528a4

View file

@ -1,5 +1,6 @@
import api from '@/utils/api';
import { registerNextServer } from '@/utils/register-server';
import registerServer from '@/utils/register-server';
import request from '@/utils/request';
const {
createSearch,
@ -48,6 +49,6 @@ const methods = {
method: 'get',
},
} as const;
const searchService = registerNextServer<keyof typeof methods>(methods);
const searchService = registerServer<keyof typeof methods>(methods, request);
export default searchService;