url統一定義
This commit is contained in:
1 parent
69046e827c
commit
c6eb00b406
9 files changed
+228
-65
No files matched your search
@@ -37,6 +37,7 @@ import { useMediaIntentStore } from "@/stores/mediaIntent";
|
||||
import { useUploadQueueStore } from "@/stores/uploadQueue";
|
||||
import { chooseFiles } from "@/utils/chooseFiles";
|
||||
import { fetchFileBytes, saveFileBytes, toImageUrl, toPlayableUrl } from "@/utils/dmsBytes";
|
||||
import { absoluteFileUrl } from "@/utils/fileUrl";
|
||||
import { clearPlayback, setPlayback } from "@/utils/playbackBus";
|
||||
import { transferGlyph } from "@/utils/transferGlyph";
|
||||
|
||||
@@ -643,7 +644,8 @@ async function actionPlay(target: FileItem): Promise<void> {
|
||||
return;
|
||||
}
|
||||
if (target.kind === "video" && record.Url) {
|
||||
goPlay("video", target.name, record.Url);
|
||||
// 后端 Url 按请求 Host 拼绝对地址,UAT 反代未传原始 Host 时会拼成内网 IP,H5 下不可达:先过 absoluteFileUrl 归一
|
||||
goPlay("video", target.name, absoluteFileUrl(record.Url));
|
||||
return;
|
||||
}
|
||||
await withBusy(async () => {
|
||||
|
||||
Reference in new issue
Block a user