fix: 修复bug
This commit is contained in:
@@ -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 || []));
|
||||
}, []);
|
||||
|
||||
// 提交
|
||||
|
||||
Reference in New Issue
Block a user