Files
dvcp_v2_webapp/packages/core/AppQyWxConfig/AppQyWxConfig.vue

37 lines
695 B
Vue
Raw Permalink Normal View History

2021-12-14 18:36:19 +08:00
<template>
<section class="AppQyWxConfig">
2022-07-27 15:59:13 +08:00
<component :is="currentPage" v-bind="$props"/>
2021-12-14 18:36:19 +08:00
</section>
</template>
<script>
2022-07-27 15:59:13 +08:00
import List from "./list";
import ThemeSetting from "./themeSetting";
2021-12-14 18:36:19 +08:00
export default {
name: "AppQyWxConfig",
2022-07-27 15:59:13 +08:00
components: {ThemeSetting, List},
label: "企业微信配置",
props: {
instance: Function,
dict: Object,
permissions: Function
},
computed: {
2022-07-27 15:59:13 +08:00
currentPage() {
const {hash} = this.$route
return hash == "#theme" ? ThemeSetting : List
2021-12-14 18:36:19 +08:00
}
},
created() {
2022-07-27 15:59:13 +08:00
this.dict.load("yesOrNo", "themeWeb", 'themeMp', "themeWxwork")
2021-12-14 18:36:19 +08:00
}
}
2021-12-14 18:36:19 +08:00
</script>
<style lang="scss" scoped>
.AppQyWxConfig {
2022-07-27 16:59:45 +08:00
height: 100%;
}
2021-12-14 18:36:19 +08:00
</style>