From f27ca082eb0a839449dd50c49007b58e5ed6946f Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 19 Jun 2025 19:08:01 +0800
Subject: [PATCH] feat: 服务名修改
---
src/components/MediaPanel.vue | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/components/MediaPanel.vue b/src/components/MediaPanel.vue
index e00294d..79e4794 100644
--- a/src/components/MediaPanel.vue
+++ b/src/components/MediaPanel.vue
@@ -118,15 +118,13 @@
type Key = ColumnProps['key'];
-const { baseUrl: { mediaPanelPrefix } } = window.globalApiConfig
-
const workspaceId = localStorage.getItem(ELocalStorageKey.WorkspaceId)!
const loading = ref(false)
const showVideo = ref(false)
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 = window.globalApiConfig?.baseUrl?.mediaPanelPrefix || import.meta.env.VITE_MEDIAPANEL_API_URL
// 搜索栏配置项
const searchPanelOptions = reactive({
size: 'large',
@@ -248,6 +246,7 @@
}
function viewFile (objectKey: string) {
+ console.log(objectKey)
const ext = objectKey.split('.')[1]
const fileType = getFileType(ext)
let url = ''
--
Gitblit v1.9.3