mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 15:11:29 +08:00
21 lines
362 B
TypeScript
Executable File
21 lines
362 B
TypeScript
Executable File
export function useAppPage() {
|
|
const router = useRouter()
|
|
|
|
const appSettingsStore = useAppSettingsStore()
|
|
|
|
function reload() {
|
|
appSettingsStore.setIsReloading(true)
|
|
router.push({
|
|
name: 'reload',
|
|
}).then(() => {
|
|
setTimeout(() => {
|
|
appSettingsStore.setIsReloading(false)
|
|
}, 100)
|
|
})
|
|
}
|
|
|
|
return {
|
|
reload,
|
|
}
|
|
}
|