common/dataLocation.js
@@ -1,6 +1,8 @@ const app = getApp(); // 获取用户配置信息 const userConfig = app.globalData.userConfig; // 切换账号时,重置可选行政区划 app.globalData.onLaunch.push(() => { remoteLocations = []; }); const _locations = [ { @@ -142,6 +144,8 @@ function locations() { if (remoteLocations.length > 0) return remoteLocations; // 获取用户配置信息 const userConfig = app.globalData.userConfig; if (!userConfig) { remoteLocations = _locations; return remoteLocations;