| | |
| | | if (!menu) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: dict['no_perm'] || '菜单已删除或没有访问权限!', |
| | | message: dict['no_perm'] || `没有${btn.MenuName ? `菜单《${btn.MenuName}》的` : '此菜单的'}访问权限!`, |
| | | duration: 5 |
| | | }) |
| | | return |
| | |
| | | MKEmitter.emit('openNewTab') |
| | | } |
| | | |
| | | // if (window.GLOB.systemType === 'production') { |
| | | // MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '标签页'}) |
| | | // } |
| | | if (window.GLOB.systemType === 'production') { |
| | | MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '标签页'}) |
| | | } |
| | | } |
| | | |
| | | triggerMenu = (tab) => { |
| | |
| | | if (!menu) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: dict['no_perm'] || '菜单已删除或没有访问权限!', |
| | | message: dict['no_perm'] || '没有此菜单的访问权限!', |
| | | duration: 5 |
| | | }) |
| | | return |
| | |
| | | MKEmitter.emit('openNewTab') |
| | | } |
| | | |
| | | // if (window.GLOB.systemType === 'production') { |
| | | // MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '标签页'}) |
| | | // } |
| | | if (window.GLOB.systemType === 'production') { |
| | | MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '标签页'}) |
| | | } |
| | | } |
| | | |
| | | render() { |