after opening the vue home page of localhost:8080, everything written behind the path points to the same home page, such as "localhost:8080/api", pointing to the page of "localhost:8080"
after opening the vue home page of localhost:8080, everything written behind the path points to the same home page, such as "localhost:8080/api", pointing to the page of "localhost:8080"
you have to see how the route object is written first
if you don't mind, show the route code
the default path should be set in the route
because HTML5 History pattern is required, all paths that do not exist need to point to index.html
, and then match the view by vue-router . If the path you visit is not configured with a route, the default route is displayed. You are now a service started by webpack-dev-server
in the development environment. Internal processing has been done, and 404 will be displayed if you visit it after deployment.
if you want to configure the interface proxy, please refer to the documentation: https://github.com/vuejs-temp.
proxy Note: you need to use nginx
configure the proxy
Previous: PHP Warning: PHP Startup: Unable to load dynamic
Next: What is the name of the English version of VS or SSMS,?