瀏覽代碼

fix(EditSong): drawCanvas not functional

Owen Diffey 2 年之前
父節點
當前提交
61f410943c
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 0 1
      frontend/src/components/FloatingBox.vue
  2. 2 2
      frontend/src/components/modals/EditSong/index.vue

+ 0 - 1
frontend/src/components/FloatingBox.vue

@@ -1,5 +1,4 @@
 <script setup lang="ts">
-// WIP
 import { onMounted, onUnmounted, ref, defineExpose, nextTick } from "vue";
 import useDragBox from "@/composables/useDragBox";
 

+ 2 - 2
frontend/src/components/modals/EditSong/index.vue

@@ -272,8 +272,8 @@ const drawCanvas = () => {
 
 	const videoDuration = Number(youtubeVideoDuration.value);
 
-	const skipDuration = Number(song.value.skipDuration.value);
-	const duration = Number(song.value.duration.value);
+	const skipDuration = Number(song.value.skipDuration);
+	const duration = Number(song.value.duration);
 	const afterDuration = videoDuration - (skipDuration + duration);
 
 	const width = 530;