mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 Database table view cell value adds createdAt and updatedAt fields https://github.com/siyuan-note/siyuan/issues/10492
This commit is contained in:
parent
e487897b54
commit
ce58bccd63
3 changed files with 26 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue