1
lzhe
2024-09-29 3f4328357a4bb89a3256b834e1ef2b07fc3c3d0e
vue.config.js
@@ -1,6 +1,13 @@
/*
 * @Date: 2024-03-23 09:49:06
 * @LastEditors: Sneed
 * @LastEditTime: 2024-04-10 22:11:52
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/vue.config.js
 */
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
   lintOnSave: false,
   //设置为空打包后不分更目录还是多级目录
   publicPath:'',
   //build编译后存放静态文件的目录
@@ -19,9 +26,9 @@
            target: process.env.VUE_APP_API_BASEURL,
            ws: true,
            pathRewrite: {
               '^/api': '/'
               // '^/api': '/'
            }
         }
         },
      }
   },