소스 검색

主控台的getViolation接口不要错误提示

louhangfei 2 년 전
부모
커밋
c422bcd089
1개의 변경된 파일10개의 추가작업 그리고 5개의 파일을 삭제
  1. 10 5
      src/api/home/home.ts

+ 10 - 5
src/api/home/home.ts

@@ -257,9 +257,14 @@ export type ViolationCount = {
 
 /** 根据用户权限查询违规记录 */
 export const getViolation = (params: ViolationsQueryParam) => {
-  return http.request<ViolationCount>({
-    url: '/dataPreview/getViolation',
-    method: 'get',
-    params,
-  });
+  return http.request<ViolationCount>(
+    {
+      url: '/dataPreview/getViolation',
+      method: 'get',
+      params,
+    },
+    {
+      isShowErrorMessage: false,
+    },
+  );
 };