mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-20 00:06:47 +08:00
feat(hooks): 添加媒体组件通用hook
- 创建 useMediaComponent hook 处理媒体组件公共逻辑 - 实现本地表单数据响应式拷贝与深度监听更新 - 提供表单字段更新方法并触发事件通知 - 定义文件基础URL常量便于统一管理 - 支持 dialogVideoForm 属性的双向绑定更新 - 集成 Vue Composition API 的 ref 和 watch 功能
This commit is contained in:
@@ -66,6 +66,7 @@ const executeCourseOperation = (operationName, data) => {
|
||||
courseMetadata.chooseIndex = data;
|
||||
courseMetadata.selectionIndex = null;
|
||||
isPreview.value = false;
|
||||
chooseItemData.value = {};
|
||||
if (courseOperations[operationName]) {
|
||||
courseOperations[operationName](data);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user