U
U
uosemenov2020-06-02 23:13:56
Vue.js
uosemenov, 2020-06-02 23:13:56

How to get store.getters value in controller?

I have a Nuxt SSR application, the architecture is as follows:
...
server
- controllers
-- client.controller.js
...
store
- client.js
- index.js

In index.js I store the agency id, which is set after authorization. How can I get this id in client.controller.js to list clients from the database for the current agency only? Suggest an idea, I can not understand in which direction to move.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question