This commit is contained in:
Daniel 2025-07-25 15:20:56 +08:00
parent 526bd76c4c
commit 49cc87381c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 29 additions and 20 deletions

View file

@ -210,7 +210,7 @@ func (value *Value) IsEdited() bool {
}
if KeyTypeCheckbox == value.Type {
// 勾选框不会为空,即使勾选框未勾选,也不算是空,所以不能用下面的 IsEmpty 判断,这里使用更新时间判断是否编辑过 https://github.com/siyuan-note/siyuan/issues/11016
// 复选框不会为空,即使复选框未勾选,也不算是空,所以不能用下面的 IsEmpty 判断,这里使用更新时间判断是否编辑过 https://github.com/siyuan-note/siyuan/issues/11016
return value.CreatedAt != value.UpdatedAt
}
@ -289,7 +289,7 @@ func (value *Value) IsEmpty() bool {
if nil == value.Checkbox {
return true
}
return false // 选框不会为空
return false // 选框不会为空
case KeyTypeRelation:
return 1 > len(value.Relation.Contents)
case KeyTypeRollup: