1.首先要在router下进行工程名添加

2.其次在vue.config.js中添加publicpath

3.在nginx配置文件中
location /my-app/ {
try_files $uri $uri/ /my-app/index.html;
}
1.首先要在router下进行工程名添加
2.其次在vue.config.js中添加publicpath
3.在nginx配置文件中
location /my-app/ {
try_files $uri $uri/ /my-app/index.html;
}