Files
dvcp_v2_webapp/packages/core/AppMenuManager/AppMenuManager.vue

37 lines
669 B
Vue
Raw Normal View History

2021-12-18 16:47:40 +08:00
<template>
<section class="AppMenuManager">
2022-07-08 18:01:58 +08:00
<component :is="currentPage" v-bind="$props"/>
2021-12-18 16:47:40 +08:00
</section>
</template>
<script>
2022-07-08 18:01:58 +08:00
import List from "./list";
import IntroPage from "./introPage";
2021-12-18 16:47:40 +08:00
export default {
name: "AppMenuManager",
2022-07-08 18:01:58 +08:00
components: {IntroPage, List},
2021-12-18 16:47:40 +08:00
label: "菜单管理",
props: {
instance: Function,
2022-09-05 17:28:27 +08:00
dict: {default: () => ({})},
2022-09-05 17:40:26 +08:00
permissions: Function
2021-12-18 16:47:40 +08:00
},
2022-07-08 18:01:58 +08:00
computed: {
currentPage() {
const {hash} = this.$route
return hash == "#intro" ? IntroPage : List
2021-12-18 16:47:40 +08:00
}
},
created() {
2022-07-22 10:32:02 +08:00
this.dict.load("menuType", "yesOrNo")
2021-12-18 16:47:40 +08:00
}
}
</script>
<style lang="scss" scoped>
.AppMenuManager {
height: 100%;
}
</style>