vuejs configuration: using a global variable?

后端 未结 3 1697
有刺的猬
有刺的猬 2021-01-02 06:28

This seems dumb, but I have it setup like this:

in config/index.js:

module.exports = {
    API_LOCATION: \'http://localhost:8080/api/\'
         


        
3条回答
  •  [愿得一人]
    2021-01-02 06:38

    Import it.

    
    

    Or just the location.

    
    

提交回复
热议问题