fix #335

Merged
yaoshuli merged 1 commits from fix/change_task into test 1 year ago

@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from 'vue' import { ref ,watch} from 'vue'
import Upload from '../Upload.vue' import Upload from '../Upload.vue'
const props = defineProps<{ const props = defineProps<{
@ -16,6 +16,13 @@ const url = ref<string>(props.value)
function onChange(value: string) { function onChange(value: string) {
emit('update:value', value) emit('update:value', value)
} }
watch(
() => props,
(newVal, oldVal) => {
console.log(props)
},
{ deep: true },
)
</script> </script>
<template> <template>

Loading…
Cancel
Save