UNPKG
vue-swr-plus
Version:
latest (0.1.0)
0.1.0
SWR (stale-while-revalidate) for Vue
vue-swr-plus
/
dist
/
index.js
9 lines
•
264 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
{ useSWR }
from
'./useSWR'
;
const
SWRPlugin
= {
install
:
(
app, options
) =>
{ app.
config
.
globalProperties
.
$swr
= useSWR;
// 可以在这里添加全局配置
} };
export
{
SWRPlugin
, useSWR };
//# sourceMappingURL=index.js.map