21 lines
411 B
Vue
21 lines
411 B
Vue
|
<script lang="ts" setup>
|
||
|
import { useSettingsStore } from '@/store/modules/settings'
|
||
|
|
||
|
const $pub: any = inject('$pub')
|
||
|
|
||
|
const settingsStore = useSettingsStore()
|
||
|
const { theme } = storeToRefs(settingsStore)
|
||
|
|
||
|
const refreshRoute = () => {
|
||
|
$pub('reload-router-view')
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<vab-icon
|
||
|
v-if="theme.showRefresh"
|
||
|
icon="refresh-line"
|
||
|
@click="refreshRoute"
|
||
|
/>
|
||
|
</template>
|