qinxianzhangyao
2024-02-26 e08d725d241c7eca309cb50339ceaf1845471a31
vue.config.js
@@ -15,6 +15,23 @@
//官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions
// 这里只列一部分,具体配置参考文档
module.exports = {
  transpileDependencies: ["vue-json-excel"], //这里是将引用的插件转成es5,具体转哪个 看浏览器控制台哪个报错就好了
  // pages: {
  //   index: {
  //     // add here ---start---
  //     entry: ["node_modules/@babel/polyfill/dist/polyfill.js", "src/main.js"], //这里的路劲一定要写自己的,原作者的路径与我的不同
  //     // add here ---end---
  //     template: "public/index.html",
  //     filename: "index.html",
  //     chunks: ["chunk-vendors", "chunk-common", "index"],
  //   },
  // },
  // 部署生产环境和开发环境下的URL。
  // 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上
  // 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
@@ -36,7 +53,7 @@
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
        //target: `https://ltpeis.xaltjdkj.cn:5501/prod-api/getInfo`,
        target: `http://192.168.0.111:5011`,
        target: `http://192.168.0.108:5011`,
        // // target: `http://192.168.0.99:8080/ltkj-admin`,
        // target: `https://ltpeis.xaltjdkj.cn:5011/ltkj-admin`,
        // target: `http://10.168.0.9:5011`,