Commit 6af40b00 by 李伟康

```

chore(version): 更新版本号并移除缓存逻辑

- 将版本号从 2.22.2 更新为 2.22.3
- 注释掉 PathUtils 中的本地存储缓存读取逻辑
- 注释掉 RecordService 中的防抖处理逻辑
```
1 parent eb03ed87
......@@ -2,8 +2,8 @@
"name" : "展业助手",
"appid" : "__UNI__D3BD3DF",
"description" : "",
"versionName" : "2.22.2",
"versionCode" : 2222,
"versionName" : "2.22.3",
"versionCode" : 2223,
"transformPx" : false,
"sassImplementationName" : "node-sass",
/* 5+App特有相关 */
......
......@@ -63,13 +63,13 @@ class PathUtils {
}
// 2. 尝试读取持久化缓存
const storageCache = uni.getStorageSync(this.ROOT_PATH_CACHE_KEY);
if (storageCache) {
uni.$logger?.local?.info(`[PathUtils] 命中本地缓存,根路径: ${storageCache}`);
// 同步到内存缓存
this.CACHED_ROOT_PATH = storageCache;
return Promise.resolve(this.CACHED_ROOT_PATH);
}
// const storageCache = uni.getStorageSync(this.ROOT_PATH_CACHE_KEY);
// if (storageCache) {
// uni.$logger?.local?.info(`[PathUtils] 命中本地缓存,根路径: ${storageCache}`);
// // 同步到内存缓存
// this.CACHED_ROOT_PATH = storageCache;
// return Promise.resolve(this.CACHED_ROOT_PATH);
// }
// 3. 无缓存,请求原生文件系统API
return new Promise((resolve, reject) => {
......
......@@ -206,13 +206,13 @@ class RecordService {
handler(params, fn, delay = 0) {
if (this.isReceptioning()) {
if (delay > 0) {
// 使用函数名作为防抖的 key
// 注意:这里 fn.name 在压缩混淆后可能会变,但在 Service 内部引用是固定的
this.debounce(fn.name, () => fn.call(this, params), delay)
} else {
// if (delay > 0) {
// // 使用函数名作为防抖的 key
// // 注意:这里 fn.name 在压缩混淆后可能会变,但在 Service 内部引用是固定的
// this.debounce(fn.name, () => fn.call(this, params), delay)
// } else {
fn.call(this, params)
}
// }
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!