修改三個配置,具體操做往後有時間更新,不懂私聊
1html
const route = new Router({ mode: 'history', base: '/doctor-html/', routes })
2nginx
assetsPublicPath: '/doctor-html/',
3web
try_files $uri $uri/ /doctor-html/index.html;
4
項目目錄配置實例
項目路徑web/doctor-html/index.html
nginx配置root指向 web/ 項目放在doctor-html,可是nginx指向web,url訪問com/doctor-html就行了url