自动播放视频
This commit is contained in:
@@ -39,6 +39,7 @@ import ProTable from '@/components/ProTable/index.vue'
|
||||
import type { ColumnProps, ProTableInstance } from '@/components/ProTable/interface'
|
||||
import type { ResourceManage } from '@/api/resourceManage/interface'
|
||||
import { getResourceManageList, getResourceManagePlayUrl } from '@/api/resourceManage'
|
||||
import { consumeResourceManageAutoplayFirst } from '@/utils/resourceManageAutoplay'
|
||||
import ResourceManagePopup from './components/resourceManagePopup.vue'
|
||||
import ResourcePlayerDialog from './components/resourcePlayerDialog.vue'
|
||||
|
||||
@@ -51,7 +52,16 @@ const resourceManagePopup = ref()
|
||||
const resourcePlayerDialog = ref()
|
||||
|
||||
const getTableList = async (params: ResourceManage.ReqResourceManageParams) => {
|
||||
return getResourceManageList(params)
|
||||
const response = await getResourceManageList(params)
|
||||
const firstRecord = response.data.records?.[0]
|
||||
|
||||
if (consumeResourceManageAutoplayFirst()) {
|
||||
if (firstRecord) {
|
||||
await handlePlay(firstRecord)
|
||||
}
|
||||
}
|
||||
|
||||
return response
|
||||
}
|
||||
|
||||
const formatFileSize = (size?: number) => {
|
||||
|
||||
Reference in New Issue
Block a user