diff --git a/15615.741d7543.async.js b/15615.97539229.async.js
similarity index 99%
rename from 15615.741d7543.async.js
rename to 15615.97539229.async.js
index 3b5c83e475..3458e5a454 100644
--- a/15615.741d7543.async.js
+++ b/15615.97539229.async.js
@@ -1897,7 +1897,7 @@ var DelayTip_Type = /*#__PURE__*/function (Type) {
return Type;
}(DelayTip_Type || {});
var DelayTip = function DelayTip(_ref) {
- var _JSON$parse, _localStorage2;
+ var _localStorage2;
var visible = _ref.visible,
user = _ref.user,
_ref$onCancel = _ref.onCancel,
@@ -1920,7 +1920,7 @@ var DelayTip = function DelayTip(_ref) {
var _localStorage, _user$userInfo2;
var delaytip = JSON.parse((_localStorage = localStorage) === null || _localStorage === void 0 ? void 0 : _localStorage.getItem('delaytip_class'));
console.log(delaytip);
- if (delaytip && delaytip !== null && delaytip !== void 0 && delaytip.isShow && (delaytip === null || delaytip === void 0 ? void 0 : delaytip.login) === (user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login)) {
+ if (delaytip && (delaytip === null || delaytip === void 0 ? void 0 : delaytip.login) === (user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login)) {
setToastVisible(true);
setInfo({
name: delaytip === null || delaytip === void 0 ? void 0 : delaytip.name,
@@ -1928,7 +1928,7 @@ var DelayTip = function DelayTip(_ref) {
});
}
}
- }, [(_JSON$parse = JSON.parse((_localStorage2 = localStorage) === null || _localStorage2 === void 0 ? void 0 : _localStorage2.getItem('delaytip_class'))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.isShow, user === null || user === void 0 ? void 0 : user.userInfo]);
+ }, [(_localStorage2 = localStorage) === null || _localStorage2 === void 0 ? void 0 : _localStorage2.getItem('delaytip_class'), user === null || user === void 0 ? void 0 : user.userInfo]);
var handleCancel = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
@@ -1946,12 +1946,6 @@ var DelayTip = function DelayTip(_ref) {
};
}();
var handleIgnore = function handleIgnore() {
- var _user$userInfo3;
- localStorage.setItem('delaytip_class', JSON.stringify({
- time: new Date(),
- login: user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.login,
- isShow: false
- }));
setToastVisible(false);
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
@@ -2270,7 +2264,7 @@ var HeaderComponents = function HeaderComponents(_ref) {
background: "".concat(location.pathname == '/training' ? 'rgba(0,0,0,0)' : '')
},
className: "".concat(globalSetting.isIlearning ? Headermodules["header-iearning"] : Headermodules.header, " ").concat(globalSetting.showHeaderFixed ? Headermodules.headerFixed : ''),
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(components_DelayTip, {}), /*#__PURE__*/(0,jsx_runtime.jsxs)(Header, {
+ children: [(globalSetting === null || globalSetting === void 0 ? void 0 : globalSetting.showTip) && /*#__PURE__*/(0,jsx_runtime.jsx)(components_DelayTip, {}), /*#__PURE__*/(0,jsx_runtime.jsxs)(Header, {
className: "header",
style: {
background: "".concat(location.pathname == '/training' ? 'rgba(0,0,0,0)' : ''),
diff --git a/index.html b/index.html
index 6da382c6fb..1501cb3310 100644
--- a/index.html
+++ b/index.html
@@ -27,7 +27,7 @@
display: block !important;
}
-
+