diff --git a/config/config.ts b/config/config.ts index 7115440..1e1f34b 100644 --- a/config/config.ts +++ b/config/config.ts @@ -3,7 +3,7 @@ const isCordova = false; const outputPath = isCordova ? 'www' : 'dist'; const env = process.env.NODE_ENV; // 这里需要对应服务器地址 -const path = env === 'development' ? 'http://127.0.0.1:8000/' : outputPath; +const path = env === 'development' ? 'http://127.0.0.1:8000/' : `${outputPath}/`; export default { appType: isCordova ? 'cordova' : 'h5',