如:http://xxx.xxx.xxx.xxx:8888/

改成:http://xxx.xxx.xxx.xxx:8888/eform/

加上 /eform 来区分vue多个项目的运行

跟项目配置运行与路由相关,所以在 vue.config.jsrouter/index.js 下修改配置

//vue.config.js
module.exports = {
publicPath: '/eform/', // 路径配置,默认为 /
...
devServer: {
...
port: 8888, //端口
...

//router/index.js
const router = new Router({
mode: 'history',
base: '/eform/', // 路径配置,默认不配置
routes: routes.flat()
})

相关文章:

  • 2021-08-19
  • 2021-04-16
  • 2021-04-01
  • 2022-01-03
  • 2022-12-23
  • 2021-10-27
  • 2022-01-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
  • 2022-12-23
  • 2021-06-20
相关资源
相似解决方案