代码评审建议:loadAll 与 refresh 各有一份相同的 7 项 fetcher 映射, 且 refresh 每次调用都重建对象。提取为模块级单例后: - 消除重复(单一信源) - 节省每次 refresh 的对象分配 - loadAll 用 Object.entries 驱动而非手写 7 行 |
||
|---|---|---|
| .. | ||
| components | ||
| composables | ||
| hybrid/html | ||
| nativePlugins/imengyu-UniAndroidGyro | ||
| pages | ||
| scripts | ||
| static | ||
| store | ||
| uni_modules | ||
| uniCloud-alipay | ||
| utils | ||
| .gitignore | ||
| App.vue | ||
| index.html | ||
| main.js | ||
| manifest.json | ||
| oss-upload-test(1).html | ||
| package.json | ||
| pages.json | ||
| RANKING_API_SPECIFICATION.md | ||
| uni.promisify.adaptor.js | ||
| uni.scss | ||
| vite.config.js | ||