Skip to content

How to use the getter method with parameters in the public method file outside the component in vue3 XXX.js? #1353

Discussion options

You must be logged in to vote

the type should be () => CallItem | {} in the last getter.
BTW you should remove the get word from the other getters since they are not functions, just data. Also, getCallList isn't needed with pinia, just use store.calls directly.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Abbyzhoum
Comment options

Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants