From f1f7ab81a834bde5fa6d9c848b9cf443b7de65fb Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期五, 13 三月 2026 09:54:38 +0800
Subject: [PATCH] Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev

---
 utils/i18n.js |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/utils/i18n.js b/utils/i18n.js
index 927b989..e5d1b00 100644
--- a/utils/i18n.js
+++ b/utils/i18n.js
@@ -42,7 +42,10 @@
                 title: "娓╅Θ鎻愮ず",
                 message: "[i18n]鑾峰彇璇█鍖呭け璐�: " + Message
             })
-            return
+            return {
+                data: [],
+                getRemoteFile: false
+            }
         }
     } catch (err) {
         enableCollectMissingKey = false
@@ -82,7 +85,7 @@
             MissingKeysMap[key] = Array.from(MissingKeysMap[key])
         }
     }
-    CommonUtils.doRequest2Sync({
+    await CommonUtils.doRequest2Sync({
         url: "/Xt_grdAlignment_WMES/syncMissingKeyToDB",
         data: {
             missingObj: JSON.stringify(MissingKeysMap)
@@ -95,12 +98,14 @@
     // 閲嶅惎搴旂敤
     const systemInfo = uni.getSystemInfoSync();
     const platform = systemInfo.platform;
-
-    if (platform === 'ios' || platform === 'android') {
-        // App 绔細瀹屽叏閲嶅惎
-        plus.runtime.restart();
-    } else if (platform === 'h5') {
-        // H5 绔細鍒锋柊椤甸潰
-        window.location.reload();
-    }
+    // #ifdef APP-PLUS
+    // App 绔細瀹屽叏閲嶅惎
+    plus.runtime.restart();
+    // #endif
+    // #ifdef H5
+    console.log('H5鍥炲埌鐧诲綍椤�: ');
+    uni.reLaunch({
+        url: '/pages/index/login'
+    })
+    // #endif
 }
\ No newline at end of file

--
Gitblit v1.9.1