mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 11:02:48 +08:00
优化loading和引用;
This commit is contained in:
@@ -15,9 +15,19 @@ loading.show = function (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) {
|
||||
loading.showCount = 0;
|
||||
|
||||
Reference in New Issue
Block a user