chore(config): 支持从本地文件中获取.loacl.config.js 获取

This commit is contained in:
2025-12-25 09:56:29 +08:00
parent 7d00f9d0f8
commit 01b620fcb3
2 changed files with 43 additions and 19 deletions

23
.local.config.js.example Normal file
View File

@@ -0,0 +1,23 @@
// 本地调试配置示例文件
// 复制此文件并重命名为 local.config.js 以使用自定义本地配置
const localDevConfig = ({
'460': { // 制氧设备平台
uniacid: 460,
domain: 'https://xcx30.5g-quickapp.com/',
},
'2285': { // 数码喷墨墨水
uniacid: 2285,
domain: 'https://xcx.aigc-quickapp.com/',
},
'1': { // 开发平台
uniacid: 1,
domain: 'https://dev.aigc-quickapp.com',
},
'1-test': { // 测试平台
uniacid: 1,
domain: 'https://test.aigc-quickapp.com',
},
})['2285']; // 选择要使用的环境配置
export default localDevConfig;