flat: 暂存

This commit is contained in:
Apcallover
2025-12-25 17:54:01 +08:00
parent 369d065008
commit bd2538aea4
3 changed files with 11 additions and 11 deletions

View File

@@ -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();

View File

@@ -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);