if there is no problem under the local node, it is the configuration of nginx.
my configuration:
// vue.js - router
const router = new Router({
routes: Routers,
mode: 'history',
base: '/admin/'
})
-sharp nginx
location ^~ /admin/ {
root /data/nginx/;
if (!-e $request_filename) {
rewrite ^/(.*) /index.html last;
break;
}
index index.html index.htm;
}
$route.query. Rely on the parameters on the path.
Previous: What are the events triggered by the scroll bar component of element?
Next: Element-UI 's el-upload does not display picture data transmitted from the background.