index.vue 620 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <footer v-if="visible" class="copyright">
  3. <span>{{ content }}</span>
  4. </footer>
  5. </template>
  6. <script setup>
  7. import useSettingsStore from '@/store/modules/settings'
  8. const settingsStore = useSettingsStore()
  9. const visible = computed(() => settingsStore.footerVisible)
  10. const content = computed(() => settingsStore.footerContent)
  11. </script>
  12. <style scoped>
  13. .copyright {
  14. position: fixed;
  15. bottom: 0;
  16. left: 0;
  17. right: 0;
  18. height: 36px;
  19. padding: 10px 20px;
  20. text-align: right;
  21. background-color: #f8f8f8;
  22. color: #666;
  23. font-size: 14px;
  24. border-top: 1px solid #e7e7e7;
  25. z-index: 999;
  26. }
  27. </style>