File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
packages/hooks/src/useFetchs Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,10 @@ function useFetchs<TData, TParams>(
5555 watchEffect ( ( ) => {
5656 fetchs . value [ cacheKey as string ] = {
5757 key : cacheKey ,
58- data : data ?. value as TData ,
59- params : params . value as TParams ,
58+ // @ts -ignore
59+ data : data ?. value as UnwrapRef < TData > ,
60+ // @ts -ignore
61+ params : params . value as UnwrapRef < TParams > ,
6062 loading : loading . value as UnwrapRef < boolean > ,
6163 }
6264 getFetchs ( fetchs . value as Fetchs )
@@ -75,8 +77,10 @@ function useFetchs<TData, TParams>(
7577 const fetchKey = keyIsStringOrNumber ( key ) ? key : DEFAULT_KEY
7678 fetchs . value [ fetchKey ] = {
7779 key : fetchKey ,
78- data : newData as TData ,
79- params : newParams as TParams ,
80+ // @ts -ignore
81+ data : newData as UnwrapRef < TData > ,
82+ // @ts -ignore
83+ params : newParams as UnwrapRef < TParams > ,
8084 loading : newLoading as UnwrapRef < boolean > ,
8185 }
8286 getFetchs ( fetchs . value as Fetchs )
You can’t perform that action at this time.
0 commit comments