mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-16 08:01:53 +00:00
sync过来的content没有desc, 在render时就生成
This commit is contained in:
@@ -905,6 +905,11 @@ Note._renderNotes = function(notes, forNewNote, isShared, tang) { // 第几趟
|
||||
classes += " item-active";
|
||||
}
|
||||
var note = notes[i];
|
||||
|
||||
if(!note.Desc && note.Content) {
|
||||
note.Desc = Note.genDesc(note.Content);
|
||||
}
|
||||
|
||||
var tmp;
|
||||
if(note.ImgSrc) {
|
||||
tmp = tt(Note.itemTpl, classes, note.NoteId, note.ImgSrc, note.Title, Notebook.getNotebookTitle(note.NotebookId), goNowToDatetime(note.UpdatedTime), note.Desc);
|
||||
|
Reference in New Issue
Block a user