wtt
2026-03-13 f1f7ab81a834bde5fa6d9c848b9cf443b7de65fb
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
}