Explorar el Código

cameraTenant/getList默认不报错

louhangfei hace 2 años
padre
commit
76ede11869
Se han modificado 1 ficheros con 8 adiciones y 5 borrados
  1. 8 5
      src/api/camera/camera-share.ts

+ 8 - 5
src/api/camera/camera-share.ts

@@ -49,11 +49,14 @@ export interface ReturnType {
 
 /** 查询分享的相机*/
 export const getShareCameraList = (params: CameraShareQueryType) => {
-  return http.request<ReturnType>({
-    url: '/cameraTenant/getList',
-    method: 'GET',
-    params,
-  });
+  return http.request<ReturnType>(
+    {
+      url: '/cameraTenant/getList',
+      method: 'GET',
+      params,
+    },
+    { isShowErrorMessage: false },
+  );
 };
 
 /** 编辑分享的相机*/