npm update, modal bug fix
This commit is contained in:
@ -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"]);
|
||||
|
||||
|
Reference in New Issue
Block a user