fix: bug#11191

This commit is contained in:
xieyonghong 2023-03-30 11:11:41 +08:00
parent d3ea02c0f6
commit 9b7b78fe33
1 changed files with 11 additions and 0 deletions

View File

@ -215,9 +215,20 @@ defineExpose({
resolve(data)
})
})
Object.assign(formModel, props.value)
formModel.when = props.value.when || []
watchEffect(() => {
if(props.value?.period.unit === 'hours') {
unitMax.
value = 99999
} else {
unitMax.value = 99
}
})
</script>
<style scoped lang='less'>