mirror of
https://github.com/fireinrain/JHS-enhance.git
synced 2026-10-12 20:56: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();
|
return text == null ? '' : (text + '').trim();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
if (typeof jQuery !== 'undefined' && typeof layer === 'undefined') {
|
||||||
|
await import('layui-layer');
|
||||||
|
}
|
||||||
window.localforage = localforage;
|
window.localforage = localforage;
|
||||||
window.Toastify = Toastify;
|
window.Toastify = Toastify;
|
||||||
window.md5 = md5;
|
window.md5 = md5;
|
||||||
|
|||||||
+1
-1
@@ -98,7 +98,7 @@ class Utils {
|
|||||||
}
|
}
|
||||||
if (!viewerExists) {
|
if (!viewerExists) {
|
||||||
this.layerIndexStack.pop();
|
this.layerIndexStack.pop();
|
||||||
layer.close(topLayerIndex);
|
typeof layer !== 'undefined' && layer.close(topLayerIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setupEscClose(layerIndex) {
|
setupEscClose(layerIndex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user