fix: 修复bug

This commit is contained in:
2025-07-02 13:51:09 +08:00
parent d1402e0542
commit c6dccf1c04
31 changed files with 927 additions and 601 deletions

View File

@@ -6,7 +6,7 @@ import { Form, FormField, FormItem, FormLabel, FormControl, FormMessage } from '
import { useForm } from 'react-hook-form';
import { z } from 'zod';
import { zodResolver } from '@hookform/resolvers/zod';
import { api } from '@/lib/api';
import { api } from '@/api';
interface ModelFormProps {
initialData?: any;
@@ -87,7 +87,7 @@ const ModelForm: React.FC<ModelFormProps> = ({ initialData, onSubmit, onCancel,
// 拉取标签数据
useEffect(() => {
api.Service.fetchModelTagsApiTagModelTagListGet().then(data => setTagOptions(data.data || []));
api.TagService.fetchModelTagsApiTagModelTagListGet().then(data => setTagOptions(data.data || []));
}, []);
// 提交