进一步优化 合理拆分文件和优化
This commit is contained in:
1 parent
ed76ec5da3
commit
fa5bb66d14
30 files changed
+3007
-2363
No files matched your search
@@ -6,7 +6,6 @@ import { useScanStore } from '../stores/useScanStore';
|
||||
import { imageAPI } from '../api';
|
||||
import { onUserActionStart, onUserActionEnd } from '../services/imageLoadService';
|
||||
import requestManager, { RequestType } from '../services/requestManager';
|
||||
import imageCache from '../utils/imageCache';
|
||||
import domCleanup from '../utils/domCleanup';
|
||||
import ImageWaterfall from './ImageWaterfall';
|
||||
import Dashboard from './Dashboard';
|
||||
@@ -57,11 +56,6 @@ function MainContent() {
|
||||
return;
|
||||
}
|
||||
|
||||
// 初始加载时重置本地缓存
|
||||
if (isInitialLoad) {
|
||||
imageCache.clear(); // 清理缓存
|
||||
}
|
||||
|
||||
// 暂停空闲加载并取消之前的所有请求(关键!)
|
||||
onUserActionStart();
|
||||
cancelCurrentRequest();
|
||||
|
||||
Reference in new issue
Block a user