Преглед изворни кода

Merge branch 'master' of http://git.choozmo.com:3000/ai-anchor/video-maker

tomoya пре 2 година
родитељ
комит
ceb0f1ca56
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      frontend/src/views/main/Image.vue

+ 1 - 1
frontend/src/views/main/Image.vue

@@ -42,6 +42,7 @@ async function Submit() {
   }, 500);
   await mainStore.uploadImage(imgFiles.value);
   (Form as any).value.reset();
+  loading.value = false;
   for (let i = 0; i < mainStore.images.length; i++) {
     const element = mainStore.images[i];
     imgList = imgList.filter(
@@ -68,7 +69,6 @@ onMounted(() => {
   WS.onmessage = function (e) {
     setTimeout(() => {
       mainStore.finishImage(e.data);
-      loading.value = false;
     }, 1000);
   };
 });