Z
Z
zorca2020-05-10 17:53:47
API
zorca, 2020-05-10 17:53:47

How to implement a single Vue application config that is picked up via the API?

I am implementing a multi-client application on Vue (one client - one subdomain - one database with an API on top). The config is set by the settings in the client's personal account on Laravel, then it is assumed that Vue picks it up once via the API. Since I know Vue / JS much worse than PHP, the question is how to take a single config and make it global for the entire Vue application? If it's easy with a code example. Google didn't help. )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2020-05-10
@Rsa97

Classically - through vuex storage
https://habr.com/en/post/421551/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question