Bladeren bron

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

louhangfei 2 jaren geleden
bovenliggende
commit
c422bcd089
1 gewijzigde bestanden met toevoegingen van 10 en 5 verwijderingen
  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,
+    },
+  );
 };