From 3456371e39de6581bc8de4cff2aa2ae9afc911ba Mon Sep 17 00:00:00 2001 From: km0 Date: Tue, 23 May 2023 11:32:19 +0200 Subject: [PATCH] remove scenes --- src/App.vue | 13 ++++++++++--- src/components/SceneEntry.vue | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 42 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index 7f0bfa4..bf4ef50 100644 --- a/src/App.vue +++ b/src/App.vue @@ -20,9 +20,12 @@ - - - + @@ -45,6 +48,10 @@ const add = () => { title.value = "" } +const remove = (index) => { + scenes.value.splice(index, 1) +} + const load = (e) => { let files = e.target.files files.forEach((file) =>{ diff --git a/src/components/SceneEntry.vue b/src/components/SceneEntry.vue index 0c3252e..2a56402 100644 --- a/src/components/SceneEntry.vue +++ b/src/components/SceneEntry.vue @@ -1,7 +1,10 @@