homeInit({dispatch,commit,state}){//初始化
      return new Promise(resolve=>{
        dispatch("apiGetHuiYiId").then(function(data){
          console.log()
          if(!tools.isPC()&&data.huiyi_id=="140abcfa261011eab9780242ac170002"){
            window.location.href="http://onlinesys02.hoohui.cn/cms/app/2/index.jsp?m>data.mid;
            return;
          }
          dispatch("getHomeLeftContent",data.huiyi_id);//获取首页左侧内容
          dispatch("getHomeCenterContent",data.huiyi_id);//获取首页中间内容
          dispatch("getHomeContent",data.huiyi_id);//获取首页内容(右侧 lang template)
        }).then(function(data){
          resolve();
        })
      }) 
},//首页初始化

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2021-11-07
  • 2021-10-06
  • 2022-12-23
  • 2021-09-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
相关资源
相似解决方案