Spaces:
Paused
Paused
Download web/src/main.js from looknicemm1/AutoTeam-F: direct link, hf CLI and curl.
- Browser
- Download file 553 Bytes
-
https://huggingface.co/spaces/looknicemm1/AutoTeam-F/resolve/main/web/src/main.js
- Command line
-
hf download hf://spaces/looknicemm1/AutoTeam-F/web/src/main.js
-
curl -L -o main.js https://huggingface.co/spaces/looknicemm1/AutoTeam-F/resolve/main/web/src/main.js
553 Bytes
| import { createApp } from 'vue' | |
| import { VueQueryPlugin, QueryClient } from '@tanstack/vue-query' | |
| import App from './App.vue' | |
| import './style.css' | |
| // round-12 F1 — vue-query 全局注入,refetchOnWindowFocus + staleTime 30s | |
| // 让"刷新响应更简便",F2/F3 后续把 useStatus 等手写 polling 全迁过来。 | |
| const queryClient = new QueryClient({ | |
| defaultOptions: { | |
| queries: { | |
| staleTime: 30_000, | |
| refetchOnWindowFocus: true, | |
| retry: 1, | |
| }, | |
| }, | |
| }) | |
| createApp(App) | |
| .use(VueQueryPlugin, { queryClient }) | |
| .mount('#app') | |