浏览代码

[Fix 0000] 模型文件列表读取接口强化兼容性

houzekong 1 天之前
父节点
当前提交
668a1089cf
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      src/api/sys/modelFile.ts

+ 6 - 3
src/api/sys/modelFile.ts

@@ -5,7 +5,10 @@ enum Api {
 }
 
 export const getAllModelFileJsonApi = () => {
-  return defHttp.get<Record<string, { fileName: string; filePath: string }[]>>({
-    url: Api.getAllModelFileJson,
-  });
+  return defHttp.get<Record<string, { fileName: string; filePath: string }[]>>(
+    {
+      url: Api.getAllModelFileJson,
+    },
+    { errorMessageMode: 'none' },
+  );
 };