<!--
 * @Author: 曹捷
 * @Date: 2021-09-06 22:19:24
 * @LastEditors: 曹捷
 * @LastEditTime: 2022-01-05 11:25:16
 * @Description: 主框架  layout
   在获取到菜单权限之后  注册应用
-->
<template>
  <layout @loadPermiss="loadPermiss"></layout>
</template>

<script>
import { inject, toRefs, nextTick } from 'vue';
import register from './../qiankun/register'
import layout from './index.vue'
export default {
  components: { layout },
  props: {
    showLayout: {
      type: Boolean,
      default: false
    }
  },
  setup (props) {
    let http = inject('http')
    let _methods = {
      loadPermiss (menuList, sysBtn) {
        register(http, menuList, sysBtn)
      }
    }

    return {
      ...toRefs(_methods)
    }
  }
}
</script>

<style>
</style>