更新 CronInput 组件,修改当前 CRON 值的绑定方式,以支持 v-model 绑定

This commit is contained in:
jxxghp
2025-01-11 20:24:06 +08:00
parent 88c86f49bf
commit 81fbf4f5ba

View File

@@ -11,7 +11,7 @@ const props = defineProps({
const emit = defineEmits(['update:modelValue'])
const currentCron = ref(props.cron)
const currentCron = ref(props.modelValue)
watch(currentCron, newVal => {
emit('update:modelValue', newVal)