Ver código fonte

fix:materialIds传值错误

linjw 2 meses atrás
pai
commit
c920c0d568
1 arquivos alterados com 6 adições e 1 exclusões
  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,