增加测试环境打包配置

master
jingling 8 months ago
parent 8e6447d6f7
commit f321baaeb6

@ -1,4 +1,6 @@
module.exports = { module.exports = {
// 开发环境接口配置 // 开发环境接口配置
APIURl: 'http://localhost:30000' APIURl: 'http://localhost:30000'
// 测试环境接口配置
//APIURl: 'http://222.71.165.187:30000'
} }

@ -16,6 +16,7 @@ const name = defaultSettings.title || 'JNPF快速开发平台' // page title
// You can change the port by the following method: // You can change the port by the following method:
// port = 3000 npm run dev OR npm run dev --port = 3000 // port = 3000 npm run dev OR npm run dev --port = 3000
const port = process.env.port || process.env.npm_config_port || 3000 // dev port const port = process.env.port || process.env.npm_config_port || 3000 // dev port
//const port = process.env.port || process.env.npm_config_port || 4000 // test port
// All configuration item explanations can be find in https://cli.vuejs.org/config/ // All configuration item explanations can be find in https://cli.vuejs.org/config/
module.exports = { module.exports = {

Loading…
Cancel
Save