copilot配置完成

This commit is contained in:
aixianling
2024-07-12 16:40:20 +08:00
parent dbb986688c
commit 1c9a736274
3 changed files with 192 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<script>
import Add from "./ccAdd.vue";
import List from "./ccList.vue";
export default {
name: "AppCopilotConfig",
label: "Copilot配置",
props: {
instance: Function,
dict: Object,
permissions: Function,
menuName: String
},
computed: {
currentPage() {
let {hash} = this.$route
return hash == "#add" ? Add : List
}
},
}
</script>
<template>
<section class="AppCopilotConfig">
<component :is="currentPage" v-bind="$props"/>
</section>
</template>
<style scoped lang="scss">
.AppCopilotConfig {
height: 100%;
}
</style>