king
2020-05-15 25b1262a25df82f32296afe3802836e768f2143f
src/components/header/index.jsx
@@ -159,6 +159,9 @@
    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)
@@ -241,7 +244,11 @@
    
    // 获取主菜单参数
    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模式,即可复制菜单参数