After vue is packaged, it needs to be run locally, and interface information can be accessed locally at the same time.

clipboard.png
configindex.js/api/
axios

clipboard.png

Mar.14,2021
If

'/ api/' is a unified prefix, it should be written as'/ api/**', otherwise you will only agent cross-domain


when you call'/ api'. After packaging, this configuration is no longer useful, this is only for local development. If cross-domain is really involved after packaging, you'd better set it up at the back end.

Menu