ai-manus/chat-client/library/components/VabRefresh/index.vue

21 lines
411 B
Vue
Raw Permalink Normal View History

2025-07-18 16:38:18 +08:00
<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>