javascript - calling api after npm run build returns index.html
阿神
阿神 2017-05-16 17:07:25

After the vue project is packaged, static and index.html are generated, and then nginx is configured to point to index.html. When calling the api, the content of index.html is returned.

Such a problem will not occur during development. The proxyTable forwarding API is configured in Vue to port 3000. Does nginx also need to configure the forwarding API?

阿神
阿神

闭关修行中......

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!