项目上线的问题

vue

全局配置

  • .env.production*文件里面的变量需要使用VUE_APP_*开头

History路由配置

const router = createRouter({
  history: createWebHistory('/h5/'), // 需要前后两个`/`,否则在OSS上会有问题
  routes,
})
1
2
3
4
Last Updated: 2022/3/3 17:48:36
Contributors: 黎聪