mirror of
https://github.com/fireinrain/JHS-enhance.git
synced 2026-10-01 16:46:36 +08:00
修复layui悬浮窗错误不加载
This commit is contained in:
Vendored
+15382
-13203
File diff suppressed because one or more lines are too long
@@ -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
@@ -98,7 +98,7 @@ class Utils {
|
||||
}
|
||||
if (!viewerExists) {
|
||||
this.layerIndexStack.pop();
|
||||
layer.close(topLayerIndex);
|
||||
typeof layer !== 'undefined' && layer.close(topLayerIndex);
|
||||
}
|
||||
}
|
||||
setupEscClose(layerIndex) {
|
||||
|
||||
Reference in New Issue
Block a user