How to use the getter method with parameters in the public method file outside the component in vue3 XXX.js? #1353
Answered
by
posva
Abbyzhoum
asked this question in
Help and Questions
-
When I get the passing arguments to getters in the store in the public js file outside the component, it prompts an error, can anyone help me, thanks |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Jun 9, 2022
Replies: 1 comment 1 reply
-
the type should be |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
posva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 usestore.calls
directly.