18 lines
483 B
JavaScript
18 lines
483 B
JavaScript
const { defineConfig } = require('@vue/cli-service')
|
|
module.exports = defineConfig({
|
|
devServer: {
|
|
proxy: {
|
|
'/lh-api': {//匹配所有以/api开头的路径
|
|
// target: 'https://zy.sxzooh.com',//代理目标的基础路径
|
|
target: 'https://fxnsp.sxcooh.com/',//正式域名
|
|
}
|
|
},
|
|
client: {
|
|
overlay: false
|
|
}
|
|
},
|
|
transpileDependencies: true,
|
|
lintOnSave:false,
|
|
// publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
|
|
})
|