# 开发

# 部署

当部署的域名为子路径时(例如:http://www.kaim.site/xxx),需如下配置

// router/index.js
new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
})

// vue.config.js
module.exports = {
  publicPath: process.env.NODE_ENV === 'production' ? '/xxx/' : '/',
}

上次更新: 11/2/2021, 9:18:49 AM