UNPKG

vue-swr-plus

Version:

SWR (stale-while-revalidate) for Vue

9 lines 264 B
import { useSWR } from './useSWR'; const SWRPlugin = { install: (app, options) => { app.config.globalProperties.$swr = useSWR; // 可以在这里添加全局配置 } }; export { SWRPlugin, useSWR }; //# sourceMappingURL=index.js.map