GuLiMmo
2024-03-19 aec00ecc093be803860c8675cbe1c4c776a7cb4e
src/components/MediaPanel.vue
@@ -126,7 +126,7 @@
const videoPlayerId = ref('videoPlayerId')
// 文件前缀
// const prefix = 'https://dev.jxpskj.com:8026/cloud-bucket'
const prefix = mediaPanelPrefix || 'https://dev.jxpskj.com:8026/cloud-bucket'
const prefix = mediaPanelPrefix || import.meta.env.VITE_MEDIAPANEL_API_URL
// 搜索栏配置项
const searchPanelOptions = reactive({
  size: 'large',
@@ -248,6 +248,7 @@
}
function viewFile (objectKey: string) {
  console.log(objectKey)
  const ext = objectKey.split('.')[1]
  const fileType = getFileType(ext)
  let url = ''