fix: 修复MaterialEditDialog中list_models命令不存在的错误

- 将MaterialEditDialog.tsx中的'list_models'调用改为'get_all_models'
- 确保前端调用的命令名称与后端注册的命令名称一致
- 解决'Command list_models not found'错误
This commit is contained in:
imeepos 2025-07-15 13:24:37 +08:00
parent 0b9a90771a
commit 5686af3199
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export const MaterialEditDialog: React.FC<MaterialEditDialogProps> = ({
setLoading(true);
setError(null);
try {
const modelList = await invoke<Model[]>('list_models');
const modelList = await invoke<Model[]>('get_all_models');
setModels(modelList);
} catch (error) {
console.error('加载模特列表失败:', error);