Jelajahi Sumber

fix:materialIds传值错误

linjw 2 bulan lalu
induk
melakukan
c920c0d568
1 mengubah file dengan 6 tambahan dan 1 penghapusan
  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,