npm update, modal bug fix

This commit is contained in:
2024-06-01 15:01:05 +02:00
parent be4e97b476
commit 5c60fadaa3
4 changed files with 31 additions and 14 deletions

View File

@ -13,7 +13,7 @@
</template>
<script setup lang="ts">
import { defineEmits, onMounted, onUnmounted, ref } from 'vue'
import { defineEmits, onMounted, onUnmounted, ref, watch } from 'vue'
const properties = defineProps({
isModalOpen: {
@ -22,6 +22,10 @@ const properties = defineProps({
}
});
watch(() => properties.isModalOpen, (value) => {
isModalOpen.value = value;
});
const isModalOpen = ref(properties.isModalOpen);
const emit = defineEmits(["modal:close", "character:create"]);