Vue.js Development Notes
1. Remove the "#" to modify the main.js file in the url, add mode: 'history'const RouterConfig = {mode:' history', routes: MainRoute} const router = new VueRouter (RouterConfig) 2, modify the nginx configuration file location / {root / usr/share/nginx/html; try_files $uri $uri/ / index.html$is_args$args; # # add this line of index index.html index.htm }