chore(plugins): 同步 gallery 1.6.9 微任务绘制修复
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m32s

This commit is contained in:
qiqi committed 2026-11-22 00:09:13 +08:00
1 parent 38ec7465bf
commit 178cda830a
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -355,7 +355,7 @@
// v1.6.9:缩略图地址按名字缓存,且进行中的请求共享同一 Promise ——
// 重排/重测会重建 DOM,不共享就会对同一张图重复取 N 次。
var key = it.name
if (thumbCache[key]) { var u0 = thumbCache[key]; setTimeout(function () { paint(u0) }, 0); return }
if (thumbCache[key]) { var u0 = thumbCache[key]; Promise.resolve().then(function () { paint(u0) }).catch(function () { /* ignore */ }); return }
if (!thumbPending[key]) {
thumbPending[key] = Promise.resolve(ctx.gallery.thumb(key)).then(function (url) {
if (url && typeof url === 'string') thumbCache[key] = url
+1 -1
View File
@@ -13,7 +13,7 @@
"图库"
],
"files": {
"main.js": "891cf9d053339729437dfd973bbbfdce53e50b3c9ec4eee23d21166871057af7",
"main.js": "26c7e64b3a0021c6b9514dfb84d4d2580276698222b4791cfa99f22ead66ff52",
"styles.css": "9d5b4ab1343761e51ef0c479cab96a94d3d6eaa27f0fdb500bff789ec81d70e0"
}
}
+1 -1
View File
@@ -24,7 +24,7 @@
"style": "styles.css",
"version": "1.6.9",
"files": {
"main.js": "891cf9d053339729437dfd973bbbfdce53e50b3c9ec4eee23d21166871057af7",
"main.js": "26c7e64b3a0021c6b9514dfb84d4d2580276698222b4791cfa99f22ead66ff52",
"styles.css": "9d5b4ab1343761e51ef0c479cab96a94d3d6eaa27f0fdb500bff789ec81d70e0"
}
},