Administrator
2021-08-11 92d0cf73df170131eba84490d875bc954eb7a708
vue.config.js
@@ -1,6 +1,6 @@
module.exports = {
  //路径前缀
  publicPath: "/",
  publicPath: "/enterprises/",
  lintOnSave: true,
  productionSourceMap: false,
  chainWebpack: (config) => {
@@ -20,15 +20,20 @@
  css: {
    extract: { ignoreOrder: true }
  },
  //开发模式反向代理配置,生产模式请使用Nginx部署并配置反向代理
  //开发模式反向代理配置,生产模式请使用Nginx部署并配置反向代理。
  devServer: {
    port: 1888,
    // disableHostCheck: true,
    proxy: {
      '/api': {
        //本地服务接口地址
        target: 'http://localhost',
        // target: 'http://localhost',
        target: 'http://192.168.0.114:81',//钟W
        // target: 'http://localhost:81',//原W
        // target: 'http://192.168.0.108:81',//原W
        // target: 'http://192.168.0.109:81',//唐N
        //远程演示服务地址,可用于直接启动项目
        //target: 'https://saber.bladex.vip/api',
        // target: 'https://saber.bladex.vip/api',
        ws: true,
        pathRewrite: {
          '^/api': '/'