瀏覽代碼

fix:materialIds传值错误

linjw 2 月之前
父節點
當前提交
c920c0d568
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/views/interactVideo/videoManage/addSouce.vue

+ 6 - 1
src/views/interactVideo/videoManage/addSouce.vue

@@ -306,7 +306,12 @@ function dialogSubmit() {
         proxy.$modal.msgError("请选择素材");
         return;
       }
-      const materialIds = [...ids.value, ...releateIds.value, uploadId.value];
+      let materialIds = []
+      if (uploadId.value) {
+        materialIds = [...ids.value, ...releateIds.value, uploadId.value];
+      } else {
+        materialIds = [...ids.value, ...releateIds.value];
+      }
       confirmLoading.value = true;
       const params = {
         materialIds,