소스 검색

[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' },
+  );
 };