diff --git a/apps/web-antd/src/api/aiot/video/index.ts b/apps/web-antd/src/api/aiot/video/index.ts deleted file mode 100644 index 4fdd62dae..000000000 --- a/apps/web-antd/src/api/aiot/video/index.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { wvpRequestClient } from '#/api/aiot/request'; - -export namespace AiotVideoApi { - /** 流信息 */ - export interface StreamInfo { - app?: string; - stream?: string; - ip?: string; - flv?: string; - ws_flv?: string; - rtmp?: string; - hls?: string; - rtsp?: string; - mediaServerId?: string; - tracks?: StreamTrack[]; - } - - export interface StreamTrack { - codec_id?: number; - codec_id_name?: string; - ready?: boolean; - type?: number; - width?: number; - height?: number; - fps?: number; - } -} - -// ==================== 视频播放 API ==================== - -/** 开始播放 */ -export function playStart(deviceId: string, channelId: string) { - return wvpRequestClient.get( - `/aiot/video/play/start/${deviceId}/${channelId}`, - ); -} - -/** 停止播放 */ -export function playStop(deviceId: string, channelId: string) { - return wvpRequestClient.get( - `/aiot/video/play/stop/${deviceId}/${channelId}`, - ); -} diff --git a/apps/web-antd/src/store/auth.ts b/apps/web-antd/src/store/auth.ts index f7c59bbff..dcef71175 100644 --- a/apps/web-antd/src/store/auth.ts +++ b/apps/web-antd/src/store/auth.ts @@ -138,18 +138,7 @@ export const useAuthStore = defineStore('auth', () => { userStore.setUserInfo(authPermissionInfo.user); userStore.setUserRoles(authPermissionInfo.roles); // accessStore - // 过滤掉 visible=false 的菜单项(含子菜单递归过滤) - const filterVisibleMenus = (menus: any[]): any[] => { - return menus - .filter((menu) => menu.visible !== false) - .map((menu) => ({ - ...menu, - children: menu.children - ? filterVisibleMenus(menu.children) - : undefined, - })); - }; - accessStore.setAccessMenus(filterVisibleMenus(authPermissionInfo.menus)); + accessStore.setAccessMenus(authPermissionInfo.menus); accessStore.setAccessCodes(authPermissionInfo.permissions); return authPermissionInfo; } diff --git a/apps/web-antd/src/views/aiot/video/live/index.vue b/apps/web-antd/src/views/aiot/video/live/index.vue deleted file mode 100644 index bd0139d7f..000000000 --- a/apps/web-antd/src/views/aiot/video/live/index.vue +++ /dev/null @@ -1,112 +0,0 @@ - - -