From bd2538aea4693ca7a2fad049c8ac1e45367ebec5 Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Thu, 25 Dec 2025 17:54:01 +0800 Subject: [PATCH] =?UTF-8?q?flat:=20=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 12 ++++++------ stores/useRecommedIndexedDBStore.js | 2 +- stores/useScreenStore.js | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/App.vue b/App.vue index 91c35fe..20f01eb 100644 --- a/App.vue +++ b/App.vue @@ -42,14 +42,14 @@ onLaunch((options) => { useUserStore().changMiniProgramAppStatus(true); useUserStore().changMachineEnv(true); (function loop() { - console.log('📍一体机尝试获取定位'); + console.log('一体机尝试获取定位'); useLocationStore() .getLocation() .then(({ longitude, latitude }) => { - console.log(`✅一体机获取定位成功:lng:${longitude},lat${latitude}`); + console.log(`一体机获取定位成功:lng:${longitude},lat${latitude}`); }) .catch((err) => { - console.log('❌一体机获取定位失败,30s后尝试重新获取'); + console.log('一体机获取定位失败,30s后尝试重新获取'); setTimeout(() => { loop(); }, 3000); @@ -88,7 +88,7 @@ onHide(() => { }); function handleInactivity() { - console.log('【全局】60秒无操作,执行安全逻辑'); + console.warn('60秒无操作,执行安全逻辑'); if (inactivityModalTimer) { clearTimeout(inactivityModalTimer); inactivityModalTimer = null; @@ -120,7 +120,7 @@ function handleInactivity() { }, }); - // 2. 启动 10 秒倒计时 + // 2. 启动 20 秒倒计时 inactivityModalTimer = setTimeout(() => { inactivityModalTimer = null; console.log('【自动登出】10秒无响应,强制清理状态'); @@ -129,7 +129,7 @@ function handleInactivity() { uni.$emit('hide-global-popup'); performLogout(); - }, 10000); + }, 20000); } else { inactivityManager?.resume(); } diff --git a/stores/useRecommedIndexedDBStore.js b/stores/useRecommedIndexedDBStore.js index 3669828..64f1276 100644 --- a/stores/useRecommedIndexedDBStore.js +++ b/stores/useRecommedIndexedDBStore.js @@ -97,7 +97,7 @@ export const useRecommedIndexedDBStore = defineStore("indexedDB", () => { async function addRecord(payload) { const totalRecords = await baseDB.db.getRecordCount(tableName.value); if (totalRecords >= total.value) { - console.log(`⚠数据超过 ${total.value} 条,删除最早的一条...`); + console.log(`数据超过 ${total.value} 条,删除最早的一条...`); await baseDB.db.deleteOldestRecord(tableName.value); } if (!baseDB.isDBReady) await baseDB.initDB(); diff --git a/stores/useScreenStore.js b/stores/useScreenStore.js index ad507f0..673a3f4 100644 --- a/stores/useScreenStore.js +++ b/stores/useScreenStore.js @@ -70,7 +70,7 @@ class ScreenDetectionManager { count: 1 } } - + } // 动态加载 CSS @@ -85,11 +85,11 @@ class ScreenDetectionManager { // 添加加载成功/失败监听 this.cssLink.onload = () => { - console.log('🎨 宽屏 CSS 文件加载成功'); + console.log('宽屏 CSS 文件加载成功'); }; this.cssLink.onerror = () => { - console.error('❌ 宽屏 CSS 文件加载失败'); + console.error('宽屏 CSS 文件加载失败'); this.cssLink = null; }; @@ -108,7 +108,7 @@ class ScreenDetectionManager { try { this.cssLink.parentNode.removeChild(this.cssLink); this.cssLink = null; - console.log('🗑️ 宽屏 CSS 文件已移除'); + console.log('宽屏 CSS 文件已移除'); return true; } catch (error) { console.error('移除 CSS 失败:', error);