| | |
| | | if (sessionStorage.getItem('isEditState') === 'true') { // 编辑状态时,获取一级菜单,增加参数debug |
| | | _param.debug = 'Y' |
| | | } |
| | | if (options.systemType !== 'cloud' && window.GLOB.systemType !== 'official') { |
| | | _param.linkurl = window.GLOB.linkurl |
| | | } |
| | | |
| | | let result = await Api.getSystemConfig(_param) |
| | | |
| | |
| | | |
| | | // 获取主菜单参数 |
| | | let promiseMenu = new Promise(resolve => { |
| | | Api.getSystemConfig({func: 'sPC_Get_MainMenu', systemType: options.systemType}).then(result => { |
| | | let _param = {func: 'sPC_Get_MainMenu', systemType: options.systemType} |
| | | if (options.systemType !== 'cloud' && window.GLOB.systemType !== 'official') { |
| | | _param.linkurl = window.GLOB.linkurl |
| | | } |
| | | Api.getSystemConfig(_param).then(result => { |
| | | let mainMenu = null |
| | | if (result && result.status) { |
| | | if (result.debug === 'true') { // 是否为debug模式,即可复制菜单参数 |