<template>
  <div id="app">
    <k-box :no-data="flag" :portal-setting="portalSetting" />
    <test v-if="false" />
  </div>
</template>
<script>
// import request from './utils/request'
import settingJson from './data/setting.json'
import test from './views/test'

export default {
  name: 'App',
  components: {
    test
  },
  data() {
    return {
      portalSetting: settingJson.data,
      flag: false
    }
  },
  mounted() {
    this.getData()
  },
  methods: {
    getData() {
      // const menuid = '9399701cb0534878a07f27f2c097fef1'
      // const url = `/portal/api/portal/pub/menu/${menuid}`
      // request.get(url).then(res => {
      //   console.log('res', res)
      //   if (res.errcode === 0) { // 请求成功
      //     this.portalSetting = res.data
      //     this.flag = true
      //   } else {
      //     this.flag = false
      //   }
      // })
    }
  }
}
</script>
<style lang="scss">
html, body{
  margin: 0;
	width: 100%;
  height: 100%;
  overflow: auto;
}
#app{
	width: 100%;
	height: 100%;
}
</style>

