From c5e9bd09f36899c619a151812b50ef0dbf88a561 Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Thu, 18 Apr 2024 17:13:05 +0800 Subject: [PATCH] =?UTF-8?q?flat:=20=E7=94=9F=E4=BA=A7=E5=92=8C=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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