在配置文件中加入这两个配置 问题解决
location / {
root /www/wwwroot/***; // ‘*’代表自己的项目文件夹
try_files $uri $uri/ @router;
index index.html;
}
location @router{
rewrite ^.*$ /index.html last;
}
在配置文件中加入这两个配置 问题解决
location / {
root /www/wwwroot/***; // ‘*’代表自己的项目文件夹
try_files $uri $uri/ @router;
index index.html;
}
location @router{
rewrite ^.*$ /index.html last;
}