feat: 同步镜头首帧与视频生产工作区

This commit is contained in:
GouJ committed 2026-08-31 15:02:31 +08:00
1 parent 669f4d9df0
commit aeb3ce2986
16 files changed
+1802 -5

No files matched your search

+6 -1
View File
@@ -1,5 +1,5 @@
/** 只允许 HTTP(S) 与后端 /storage 路径;生产环境绝对 API 地址使用其源站。 */
export function referenceImageUrl(value: string): string | null {
export function mediaAssetUrl(value: string): string | null {
const raw = value.trim()
try {
if (raw.startsWith('/storage/') && !raw.includes('\\')) {
@@ -14,3 +14,8 @@ export function referenceImageUrl(value: string): string | null {
return null
}
}
/** 图片组件保留语义化入口,底层与视频共用同一套资源地址校验。 */
export function referenceImageUrl(value: string): string | null {
return mediaAssetUrl(value)
}