版本
注:使用版本较新,项目结构可能存在差异。
vue项目配置
src/vue.config.js -- 打包配置(我理解的是打包配置,不确定是不是)
module.exports = {
publicPath: '/pgcweb/',
src/router/index.js -- 路由配置
const router = new VueRouter({
base: '/pgcweb/',
//mode: 'history',
nginx配置
location ^~ /pgcweb{
alias /xxx/xxx/xxx/dist;
try_files $uri $uri/ /pgcweb/index.html;
}