🎨 Database table view cell value adds createdAt and updatedAt fields https://github.com/siyuan-note/siyuan/issues/10492

This commit is contained in:
Daniel 2024-03-03 16:58:37 +08:00
parent e487897b54
commit ce58bccd63
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 26 additions and 5 deletions

View file

@ -184,8 +184,12 @@ func (value *Value) Clone() (ret *Value) {
}
func (value *Value) IsEdited() bool {
if 1709454120000 > value.CreatedAt {
// 说明是旧数据,认为都是编辑过的
return true
}
if value.CreatedAt == value.UpdatedAt {
// 说明是刚刚创建的块
return false
}
return true