Merge pull request 'fix' (#335) from fix/change_task into test

Reviewed-on: #335
pull/336/head
yaoshuli 1 year ago
commit cd59b4cb4e

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

Loading…
Cancel
Save