index.vue 411 B

1234567891011121314151617181920
  1. <script lang="ts" setup>
  2. import { useSettingsStore } from '@/store/modules/settings'
  3. const $pub: any = inject('$pub')
  4. const settingsStore = useSettingsStore()
  5. const { theme } = storeToRefs(settingsStore)
  6. const refreshRoute = () => {
  7. $pub('reload-router-view')
  8. }
  9. </script>
  10. <template>
  11. <vab-icon
  12. v-if="theme.showRefresh"
  13. icon="refresh-line"
  14. @click="refreshRoute"
  15. />
  16. </template>