diff --git a/config.js b/config.js index 24f2dc2..9044667 100644 --- a/config.js +++ b/config.js @@ -26,7 +26,15 @@ module.exports = { ] }, // 接口替换字符串 - replaceStr: { - '{oss_file_url}': 'https://dy12333.org.cn/api' - } + replaceStr: (() => { + if (process.env.NODE_ENV === 'development') { + return { + '{oss_file_url}': 'https://dy12333.org.cn/api' + } + } else { + return { + '{oss_file_url}': 'https://dy12333.org.cn/api' + } + } + })() } \ No newline at end of file