From 32e52b1bbb7a53891bbcc9a26d64f08625fbb22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E4=BB=AA=E5=BC=8F?= <854085467@qq.com> Date: Thu, 16 Jul 2020 11:05:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=B8=80=E5=98=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/pear/module/tab.js | 25 ++++++++++--------------- index.html | 4 ++-- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/component/pear/module/tab.js b/component/pear/module/tab.js index 80fe5ca..c36c2a1 100644 --- a/component/pear/module/tab.js +++ b/component/pear/module/tab.js @@ -139,9 +139,7 @@ layui.define(['jquery', 'element'], function(exports) { setTimeout(function() { - pearLoad.fadeOut(500, function() { - pearLoad.remove(); - }); + pearLoad.fadeOut(500); }, time); @@ -186,9 +184,7 @@ layui.define(['jquery', 'element'], function(exports) { setTimeout(function() { - pearLoad.fadeOut(500, function() { - pearLoad.remove(); - }); + pearLoad.fadeOut(500); }, time); @@ -246,9 +242,7 @@ layui.define(['jquery', 'element'], function(exports) { setTimeout(function() { - pearLoad.fadeOut(500, function() { - pearLoad.remove(); - }); + pearLoad.fadeOut(500); }, time); @@ -303,9 +297,7 @@ layui.define(['jquery', 'element'], function(exports) { setTimeout(function() { - pearLoad.fadeOut(500, function() { - pearLoad.remove(); - }); + pearLoad.fadeOut(500); }, time); @@ -350,15 +342,18 @@ layui.define(['jquery', 'element'], function(exports) { setTimeout(function() { pearLoad.fadeOut(500, function() { - pearLoad.remove(); + $(".layui-tab[lay-filter='" + this.option.elem + "'] .layui-tab-content .layui-show").find("iframe")[0].contentWindow + .location.reload(true); }); }, time); index++; + }else{ + $(".layui-tab[lay-filter='" + this.option.elem + "'] .layui-tab-content .layui-show").find("iframe")[0].contentWindow + .location.reload(true); } - $(".layui-tab[lay-filter='" + this.option.elem + "'] .layui-tab-content .layui-show").find("iframe")[0].contentWindow - .location.reload(true); + } diff --git a/index.html b/index.html index fa7a545..d5c77a8 100644 --- a/index.html +++ b/index.html @@ -68,12 +68,12 @@ var config = { keepLoad: 2000, // 主 页 加 载 过 度 时 长 可为 false - muiltTab: true, // 是 否 开 启 多 标 签 页 true 开启 false 关闭 + muiltTab: false, // 是 否 开 启 多 标 签 页 true 开启 false 关闭 control: false, // 是 否 开 启 多 系 统 菜 单 true 开启 false 关闭 index: 'view/console/console1.html', // 默 认 加 载 主 页 data: 'admin/data/menu.json', // 菜 单 数 据 加 载 地 址 select: '0', // 默 认 选 中 菜 单 项 - logoTitle: "Pear Admin", // 网站标题 + logoTitle: "Data Pipeline", // 网站标题 logoImage: "admin/images/logo.png" // 网站Logo }; admin.render(config);