使用nginx发布多页面程序【vue的登陆页面和主页面】
第一步打包:npm run build (打包好的结构如下)

第二步配置:配置 nginx.conf
location / {
root /software/vue/dist;
index index.html;
try_files $uri $uri/ /index.html;
}
location /login {
root /software/vue/dist;
index login.html;
try_files $uri $uri/ /login.html;
}
