From 2a04ae9a602c88c1c8a16da154c3a51075e88d86 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 14 十一月 2024 10:55:29 +0800
Subject: [PATCH] Merge refs/heads/master into refs/heads/branch-novideo

---
 common/dataLocation.js |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/common/dataLocation.js b/common/dataLocation.js
index f680f08..f756199 100644
--- a/common/dataLocation.js
+++ b/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;

--
Gitblit v1.9.3