Parcourir la source

fix:materialIds传值错误

linjw il y a 2 mois
Parent
commit
c920c0d568
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  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,