feat(platform): 插件协议系统 - 支持声明式渠道、工作流与参考媒体映射
This commit is contained in:
1 parent
48dca6c796
commit
df7f607b84
58 files changed
+2074
-706
No files matched your search
@@ -571,7 +571,7 @@ export function useCanvasUpload({
|
||||
|| (targetNode.type === CanvasNodeType.Image && file.type.startsWith("image/"))
|
||||
|| (targetNode.type === CanvasNodeType.Video && file.type.startsWith("video/"))
|
||||
|| (targetNode.type === CanvasNodeType.Audio && isAudioFile(file))
|
||||
|| ![CanvasNodeType.Image, CanvasNodeType.Video, CanvasNodeType.Audio].includes(targetNode.type);
|
||||
|| (targetNode.type !== CanvasNodeType.Image && targetNode.type !== CanvasNodeType.Video && targetNode.type !== CanvasNodeType.Audio);
|
||||
if (!compatible) {
|
||||
message.warning("请选择与当前节点相同类型的媒体文件");
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user