WXL (wul)
8 天以前 fb34ba28cb908bd328cf6690ab0b19a56428f4e2
vue.config.js
@@ -7,7 +7,7 @@
const CompressionPlugin = require('compression-webpack-plugin')
const name = process.env.VUE_APP_TITLE || '浙中医大二院智慧随访平台' // 网页标题
const name = process.env.VUE_APP_TITLE || '景宁人民医院智慧随访平台' // 网页标题
const port = process.env.port || process.env.npm_config_port || 8093 // 端口
@@ -35,18 +35,23 @@
    proxy: {
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
        // target: `http://192.168.168.60:8095`,
        // target: `http://10.202.20.185:8095`,
        target: `http://192.168.2.10:8095`,
        // target: `https://www.health-y.cn/lssf`,
        // target: `http://192.168.100.10:8096`,
        target: `http://192.168.100.10:8094`,//省立同德
        // target: `http://192.168.100.10:8095`,//新华
        // target: `http://192.168.100.10:8098`,//市一
        // target:`http://localhost:8095`,
        // target: `http://192.168.101.135:8095`,
        // target: `http://192.168.101.166:8093`,
        // target: `http://192.168.191.181:8095`,
        // target: `http://192.168.100.168:8095`,
        // target:`http://35z1t16164.qicp.vip`,
        // target: `http://220.66.153.137:8095`,
        // target: `http://192.168.100.10:8089`,//南华
        // target: `https://9.208.38.93:8092/`,
        changeOrigin: true,
        pathRewrite: {
          ['^' + process.env.VUE_APP_BASE_API]: ''
        }
      }
      },
    },
    disableHostCheck: true
  },
@@ -59,6 +64,11 @@
  },
  configureWebpack: {
    name: name,
    // Node 17+ 的 OpenSSL 3 去掉了 md4,webpack4 默认用 md4 算 hash 会报
    // error:0308010C:digital envelope routines::unsupported,这里换成 sha256
    output: {
      hashFunction: 'sha256'
    },
    resolve: {
      alias: {
        '@': resolve('src')