| | |
| | | import { fromJS } from 'immutable' |
| | | import MenuUtils from '@/utils/utils-custom.js' |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | let modules = [] |
| | | let menu = fromJS(window.GLOB.customMenu).toJS() |
| | | modules = MenuUtils.getSupModules(menu.components, config.uuid) |
| | | let menu = window.GLOB.customMenu |
| | | modules = MenuUtils.getSupModules(menu.components, config.uuid, menu.interfaces) |
| | | |
| | | if (wrap.supModule && wrap.supModule.length > 0 && wrap.supModule[0] !== 'empty') { |
| | | let has = MenuUtils.checkSupModules(modules, wrap.supModule.slice(-1)[0]) |
| | | if (!has) { |
| | | wrap.supModule = '' |
| | | } |
| | | } |
| | | |
| | | const wrapForm = [ |
| | | { |