微信小程序開發環境和生產環境

1. 在根目錄下建立utils文件夾,在utils下建立profile.js文件 // profile.js const current = 'dev' //區分開發環境和生產環境, const profiles = { 'dev': { 'online': false, 'baseURL': 'http://api.dev.xxx.xxx' //開發環境地址 },
相關文章
相關標籤/搜索