Skip to content

Commit

Permalink
perf:自定义增强属性EnableFotterCustom逻辑控制顺序调整优先级
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoymin committed Aug 29, 2022
1 parent 6bc03c3 commit f17120f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions knife4j-vue/src/components/GlobalFooter/index.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<template>
<div class="globalFooter">
<a-row v-if="settings.enableFooter">
<div class="copyright">Apache License 2.0 | Copyright
<a-icon type="copyright" /> 2019-<a target="_blank" href="https://gitee.com/xiaoym/knife4j">Knife4j</a></div>
</a-row>
<a-row v-else>
<a-row v-if="settings.enableFooterCustom">
<Markdown v-if="settings.enableFooterCustom" :source="settings.footerCustomContent" />
</a-row>
<a-row v-else-if="settings.enableFooter">
<div class="copyright">Apache License 2.0 | Copyright
<a-icon type="copyright" /> 2019-<a target="_blank" href="https://gitee.com/xiaoym/knife4j">Knife4j</a>
</div>
</a-row>
</div>
</template>
<script>
Expand All @@ -21,10 +22,10 @@ export default {
}
},
components: {
"Markdown":()=>import('@/components/Markdown')
"Markdown": () => import('@/components/Markdown')
},
computed:{
settings(){
computed: {
settings() {
return this.$store.state.globals.settings;
}
},
Expand Down

0 comments on commit f17120f

Please sign in to comment.