From a02fc6a77fa1b35c6516b2d37108d80e260c6c85 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 07 十一月 2024 22:05:08 +0800 Subject: [PATCH] 2024-11-07 --- src/components/header/index.jsx | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/header/index.jsx b/src/components/header/index.jsx index 5d74131..4dd6942 100644 --- a/src/components/header/index.jsx +++ b/src/components/header/index.jsx @@ -18,6 +18,7 @@ const Resetpwd = asyncComponent(() => import('@/components/resetPassword')) const QrCode = asyncComponent(() => import('@/components/qrcode')) const LoginForm = asyncSpinComponent(() => import('./loginform')) +const SysIcon = asyncComponent(() => import('./sysmessage/icon')) class Header extends Component { state = { @@ -331,7 +332,7 @@ ParentNames: [fst.MenuName, snd.MenuName], MenuNo: trd.MenuNo, EasyCode: trd.EasyCode, - type: 'CommonTable', + type: 'CustomPage', OpenType: 'newtab', hidden: 'false' } @@ -340,7 +341,7 @@ try { let PageParam = JSON.parse(trd.PageParam) - trdItem.type = PageParam.Template || 'CommonTable' + trdItem.type = PageParam.Template || 'CustomPage' trdItem.OpenType = PageParam.OpenType || 'newtab' trdItem.hidden = PageParam.hidden || 'false' trdItem.menuColor = PageParam.menuColor || '' @@ -430,7 +431,7 @@ if (!isNaN(s) && s > 90) { Modal.warning({ width: 520, - title: <span>绯荤粺妫�娴嬪埌鎮ㄧ殑璐︽埛瀛樺湪椋庨櫓锛岃鍙婃椂鍒�<a target="_blank" rel="noopener noreferrer" href="https://cloud.mk9h.cn/admin/index.html">浜戜腑蹇�</a>淇敼瀵嗙爜锛�</span>, + title: <span>绯荤粺妫�娴嬪埌鎮ㄧ殑璐︽埛瀛樺湪椋庨櫓锛岃鍙婃椂鍒�<a target="_blank" rel="noopener noreferrer" href="https://cloud.positecgroup.com/admin/index.html">浜戜腑蹇�</a>淇敼瀵嗙爜锛�</span>, okText: '鐭ラ亾浜�' }) return @@ -561,9 +562,9 @@ MKEmitter.emit('modifyTabs', menu) } - // if (window.GLOB.systemType === 'production') { - // MKEmitter.emit('queryTrigger', {menuId: menu.MenuID, name: '鑿滃崟'}) - // } + if (window.GLOB.systemType === 'production') { + MKEmitter.emit('queryTrigger', {menuId: menu.MenuID, name: '鑿滃崟'}) + } } } @@ -787,6 +788,7 @@ <SearchOutlined className="search-menu" /> </Dropdown> : null } + {window.GLOB.SysNotice ? <SysIcon /> : null} {/* 澶村儚銆佺敤鎴峰悕 */} <Dropdown className="header-setting" overlay={menu}> <div> -- Gitblit v1.8.0