|
@ -6,7 +6,7 @@ function resolve(dir) { |
|
|
return path.join(__dirname, dir) |
|
|
return path.join(__dirname, dir) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const name = defaultSettings.title || '汇融惠享' // page title
|
|
|
const name = defaultSettings.title || '云菜窖' // page title
|
|
|
|
|
|
|
|
|
// 如果端口设置为80,
|
|
|
// 如果端口设置为80,
|
|
|
// 使用管理员权限执行命令行。
|
|
|
// 使用管理员权限执行命令行。
|
|
@ -24,7 +24,7 @@ module.exports = { |
|
|
*在大多数情况下,请使用“/”!!! |
|
|
*在大多数情况下,请使用“/”!!! |
|
|
*详细信息:https://cli.vuejs.org/config/#publicpath
|
|
|
*详细信息:https://cli.vuejs.org/config/#publicpath
|
|
|
*/ |
|
|
*/ |
|
|
publicPath: process.env.NODE_ENV === 'production' ? '/lpk/' : '/', |
|
|
publicPath: process.env.NODE_ENV === 'production' ? '/ycjui' : '/', |
|
|
outputDir: 'yythmall-ui', |
|
|
outputDir: 'yythmall-ui', |
|
|
assetsDir: 'static', |
|
|
assetsDir: 'static', |
|
|
lintOnSave: process.env.NODE_ENV === 'development', |
|
|
lintOnSave: process.env.NODE_ENV === 'development', |
|
@ -40,17 +40,18 @@ module.exports = { |
|
|
}, |
|
|
}, |
|
|
proxy: { |
|
|
proxy: { |
|
|
'/api': { // 匹配所有以 '/api'开头的请求路径
|
|
|
'/api': { // 匹配所有以 '/api'开头的请求路径
|
|
|
// target: 'http://192.168.1.109:8111',
|
|
|
// target: 'http://192.168.0.105:7211',
|
|
|
target: process.env.VUE_APP_URL, // 代理目标的基础路径
|
|
|
// target: process.env.VUE_APP_URL, // 代理目标的基础路径
|
|
|
// target: 'http://jianguan.yyundong.com/shgfapi', // 代理目标的基础路径
|
|
|
target: 'https://ordermall.yxtsoft.com/ycjapi', // 代理目标的基础路径
|
|
|
changeOrigin: true, // 支持跨域
|
|
|
changeOrigin: true, // 支持跨域
|
|
|
pathRewrite: { // 重写路径: 去掉路径中开头的'/api'
|
|
|
pathRewrite: { // 重写路径: 去掉路径中开头的'/api'
|
|
|
'^/api': '' |
|
|
'^/api': '' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
'/upload': { // 匹配所有以 '/api'开头的请求路径
|
|
|
'/upload': { // 匹配所有以 '/api'开头的请求路径
|
|
|
// target: 'http://120.46.131.15:8111',
|
|
|
// target: 'http://192.168.0.105:7211',
|
|
|
target: process.env.VUE_APP_URL, // 代理目标的基础路径
|
|
|
// target: process.env.VUE_APP_URL, // 代理目标的基础路径
|
|
|
|
|
|
target: 'https://ordermall.yxtsoft.com/ycjapi', // 代理目标的基础路径
|
|
|
changeOrigin: true, // 支持跨域
|
|
|
changeOrigin: true, // 支持跨域
|
|
|
pathRewrite: { // 重写路径: 去掉路径中开头的'/api'
|
|
|
pathRewrite: { // 重写路径: 去掉路径中开头的'/api'
|
|
|
'^/upload': '' |
|
|
'^/upload': '' |
|
|