mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-10 03:42:49 +08:00
优化loading和引用;
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
CSRF_TOKEN: "{:token()}",
|
CSRF_TOKEN: "{:token()}",
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<script src="__STATIC__/common/js/app.js"></script>
|
||||||
<script src="__STATIC__/plugs/layui-v2.5.6/layui.all.js?v={$version}" charset="utf-8"></script>
|
<script src="__STATIC__/plugs/layui-v2.5.6/layui.all.js?v={$version}" charset="utf-8"></script>
|
||||||
<script src="__STATIC__/plugs/require-2.3.6/require.js?v={$version}" charset="utf-8"></script>
|
<script src="__STATIC__/plugs/require-2.3.6/require.js?v={$version}" charset="utf-8"></script>
|
||||||
<script src="__STATIC__/config-admin.js?v={$version}" charset="utf-8"></script>
|
<script src="__STATIC__/config-admin.js?v={$version}" charset="utf-8"></script>
|
||||||
|
|||||||
@@ -15,9 +15,19 @@ loading.show = function (count) {
|
|||||||
loading.showCount += count;
|
loading.showCount += count;
|
||||||
}
|
}
|
||||||
|
|
||||||
loading.hide = function () {
|
loading.hide = function (count) {
|
||||||
|
|
||||||
loading.showCount--;
|
|
||||||
|
if (typeof count == undefined) {
|
||||||
|
count = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (count === true) {
|
||||||
|
count = 1;
|
||||||
|
loading.showCount = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
loading.showCount -= 1;
|
||||||
|
|
||||||
if (loading.showCount < 0) {
|
if (loading.showCount < 0) {
|
||||||
loading.showCount = 0;
|
loading.showCount = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user