feat: add copyright to setting

master
chenghx 6 years ago
parent 0e61d8c247
commit 626c19dcb3
  1. 2
      src/components/layout/GlobalLayout.vue
  2. 8
      src/components/login/Login.vue
  3. 2
      src/store/modules/setting.js

@ -16,7 +16,7 @@
<slot></slot> <slot></slot>
</a-layout-content> </a-layout-content>
<a-layout-footer style="padding: 0px"> <a-layout-footer style="padding: 0px">
<global-footer :link-list="linkList" copyright="2018 ICZER出品" /> <global-footer :link-list="linkList" :copyright="copyright" />
</a-layout-footer> </a-layout-footer>
</a-layout> </a-layout>
</a-layout> </a-layout>

@ -67,7 +67,7 @@
</a-form> </a-form>
</div> </div>
</div> </div>
<global-footer /> <global-footer :link-list="linkList" :copyright="copyright" />
</div> </div>
</template> </template>
@ -112,6 +112,12 @@ export default {
computed: { computed: {
systemName () { systemName () {
return this.$store.state.setting.systemName return this.$store.state.setting.systemName
},
linkList () {
return this.$store.state.setting.footerLinks
},
copyright () {
return this.$store.state.setting.copyright
} }
}, },
methods: { methods: {

@ -5,7 +5,7 @@ export default {
theme: 'dark', theme: 'dark',
layout: 'side', layout: 'side',
systemName: 'Vue Antd Admin', systemName: 'Vue Antd Admin',
copyright: '', copyright: '2018 ICZER 工作室出品',
footerLinks: [ footerLinks: [
{link: 'https://pro.ant.design', name: 'Pro首页'}, {link: 'https://pro.ant.design', name: 'Pro首页'},
{link: 'https://github.com/iczer/vue-antd-admin', icon: 'github'}, {link: 'https://github.com/iczer/vue-antd-admin', icon: 'github'},

Loading…
Cancel
Save