修复layui悬浮窗错误不加载

This commit is contained in:
lzyme.dev@gmail.com
2026-08-30 20:33:17 +08:00
parent 06b2497ee1
commit 9db06fba3b
3 changed files with 15386 additions and 13204 deletions
+15382 -13203
View File
File diff suppressed because one or more lines are too long
+3
View File
@@ -12,6 +12,9 @@ if (typeof $.trim !== 'function') {
return text == null ? '' : (text + '').trim();
};
}
if (typeof jQuery !== 'undefined' && typeof layer === 'undefined') {
await import('layui-layer');
}
window.localforage = localforage;
window.Toastify = Toastify;
window.md5 = md5;
+1 -1
View File
@@ -98,7 +98,7 @@ class Utils {
}
if (!viewerExists) {
this.layerIndexStack.pop();
layer.close(topLayerIndex);
typeof layer !== 'undefined' && layer.close(topLayerIndex);
}
}
setupEscClose(layerIndex) {