Prvni naznak verejne casti, sprava profilu

This commit is contained in:
Michal Kváček
2023-08-09 00:26:59 +02:00
parent c4603cf090
commit 25250ae00e
31 changed files with 6505 additions and 786 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
<script setup>
import {onMounted, ref, watch} from "vue";
import {ref, watch} from "vue";
const props = defineProps({
modelValue: {
@@ -26,9 +26,9 @@ const props = defineProps({
const emit = defineEmits(["update:modelValue"]);
const content = ref("");
onMounted(() => {
watch(() => props.modelValue, (newVal) => {
content.value = props.modelValue;
})
}, {immediate: true})
watch(content, () => emit("update:modelValue", content.value));