From 668bd33a6ace1a5c55b9abed6fe0c8bded0a06af Mon Sep 17 00:00:00 2001 From: life Date: Tue, 13 Mar 2018 13:30:45 +0800 Subject: [PATCH] note thumb not base64 data --- public/js/app/note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/app/note.js b/public/js/app/note.js index e7ea05cd..49f1ad42 100644 --- a/public/js/app/note.js +++ b/public/js/app/note.js @@ -518,7 +518,7 @@ Note.getImgSrc = function(content) { var imgs = $(content).find("img"); for (var i in imgs) { var src = imgs.eq(i).attr("src"); - if (src) { + if(src && src.indexOf('data:image') < 0) { // 不是base64数据 return src; } }