index.vue 534 Bytes
Newer Older
李苏's avatar
李苏 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<script>
  import config from '../config.js';
  import Edit from './edit.vue'
  export default{
    created() {
      const mkid=this.$route.meta.mkid
      this.config=config[mkid].index.config
    },
    components:{
      Edit
    },
     render(h) {
        return h('BasePage', {
          class: 'min_full',
          props: {
            config: this.config
          },
          scopedSlots: {
            dialog: ctx => h('template'),
            toolbar: ctx => h('template')
          }
        })
      },
  }
</script>