In vue history mode, refreshing 404Jing Nginx configuration does not take effect?

my website uses pagoda panel + TP5 frame + VUE, and the configuration in
vue is as follows

mode: "history",
base: process.env.BASE_URL,

Pagoda panel configuration is shown in figure

clipboard.png
it is normal to click to jump now, without anchor-sharp;
, but if refreshed, it is still reported at 404.Do you have a big boss to take a look at it?

Jun.28,2022

also encountered the same problem. After tossing around all afternoon, I found that it was not modified in the Nginx configuration of the pagoda panel, but needed to be added


to the configuration file in the domain name management.

add a sentence at the end of the configuration of nginx:

error_page  404 =200 /;

all pages are handed over to the home page for processing.

Menu