diff --git a/src/util/computed.ts b/src/util/computed.ts index 56051cd..29f0c8f 100644 --- a/src/util/computed.ts +++ b/src/util/computed.ts @@ -5,7 +5,7 @@ import { computed } from "vue"; export type MaybeGetter = T | (() => T); export function processGetter(obj: T): T extends () => infer S ? ComputedRef : T { - if (isFunction(obj)) { + if (isFunction(obj) && obj.length === 0) { return computed(obj) as ReturnType>; } return obj as ReturnType>;