Просмотр исходного кода

getSceneList默认不增加权限

louhangfei 1 год назад
Родитель
Сommit
8ef5055730
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      src/api/scene/sceneOperate.ts

+ 4 - 2
src/api/scene/sceneOperate.ts

@@ -205,11 +205,13 @@ export interface GetListWorkshop<U, A> {
   // tag?: string; //场景标签  自定义  后面需要修改
   // tag?: string; //场景标签  自定义  后面需要修改
 }
 }
 
 
-export const getSceneList = (): Promise<
+export const getSceneList = (
+  skipPerm: boolean = true,
+): Promise<
   SceneListType<GetListWorkshop<WorkspaceAddDatas, WorkShopTempleteType>, LabelModuleListType>[]
   SceneListType<GetListWorkshop<WorkspaceAddDatas, WorkShopTempleteType>, LabelModuleListType>[]
 > => {
 > => {
   return http.request({
   return http.request({
-    url: '/scene/getList',
+    url: `/scene/getList?skipPerm=${skipPerm}`,
     method: 'get',
     method: 'get',
   });
   });
 };
 };