Vue uses history mode, refresh is always on the home page

vue uses history mode, refresh is always on the home page

vue-router uses history mode. The server is configured according to the official website using nginx. Refresh will only return to the entrance

.

refresh is still on the original page

Aug.05,2021

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.

Menu