pull to refresh

This commit is contained in:
jxxghp
2023-07-01 08:58:47 +08:00
parent 7d3726f25b
commit 10013eab9d
6 changed files with 18 additions and 4 deletions

View File

@@ -1,9 +1,15 @@
<script lang="ts" setup>
const route = useRoute();
const onRefresh = () => {
location.reload();
};
</script>
<template>
<VApp>
<RouterView :key="route.fullPath" />
<PullRefresh @refresh="onRefresh">
<RouterView :key="route.fullPath" />
</PullRefresh>
</VApp>
</template>

View File

@@ -8,6 +8,7 @@ import store from '@/store'
import '@core/scss/template/index.scss'
import '@layouts/styles/index.scss'
import '@styles/styles.scss'
import PullRefresh from 'pull-refresh-vue3'
import { createApp } from 'vue'
loadFonts()
@@ -20,4 +21,5 @@ app
.use(vuetify)
.use(router)
.use(store)
.use(PullRefresh)
.mount('#app')