riku
2024-08-14 f2a0ea849099f49a3d2a9c7e5c44d033df22468f
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;