Why does everything followed by the localhost:8080 path point to the home page?

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"

Feb.28,2021

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

after deployment.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e49429-44d33.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e49429-44d33.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?