utils/common.js
@@ -2,7 +2,11 @@ serverUrl constructor() { this.serverUrl = uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API'; this.serverUrl = uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API/'; } setServerUrl(url) { this.serverUrl = url } // 防抖函数 @@ -248,4 +252,4 @@ } } export const CommonUtils = Object.freeze(new commonUtils()); export const CommonUtils = new commonUtils()