修一下

This commit is contained in:
xuncha
2026-01-28 20:35:20 +08:00
parent 8f2e403837
commit eac6b053ee
2 changed files with 3 additions and 13 deletions

View File

@@ -1961,16 +1961,6 @@ class ExportService {
? await this.getGroupNicknamesForRoom(sessionId) ? await this.getGroupNicknamesForRoom(sessionId)
: new Map<string, string>() : new Map<string, string>()
const contactCache = new Map<string, { success: boolean; contact?: any; error?: string }>()
const getContactCached = async (username: string) => {
if (contactCache.has(username)) {
return contactCache.get(username)!
}
const result = await wcdbService.getContact(username)
contactCache.set(username, result)
return result
}
// ========== 阶段3构建消息列表 ========== // ========== 阶段3构建消息列表 ==========
onProgress?.({ onProgress?.({
current: 55, current: 55,

View File

@@ -1118,8 +1118,8 @@ function SettingsPage() {
<div className="form-group"> <div className="form-group">
<label>???????????</label> <label>{'\u9ed8\u8ba4\u5bfc\u51fa\u5e76\u53d1\u6570'}</label>
<span className="form-hint">?????????????????? 1-3</span> <span className="form-hint">{'\u540c\u65f6\u5bfc\u51fa\u7684\u4f1a\u8bdd\u6570\u91cf\uff0c\u5efa\u8bae 1-3'}</span>
<input <input
type="number" type="number"
min={1} min={1}
@@ -1137,7 +1137,7 @@ function SettingsPage() {
const clamped = Math.max(1, Math.min(Math.floor(exportDefaultConcurrency || 1), 6)) const clamped = Math.max(1, Math.min(Math.floor(exportDefaultConcurrency || 1), 6))
setExportDefaultConcurrency(clamped) setExportDefaultConcurrency(clamped)
await configService.setExportDefaultConcurrency(clamped) await configService.setExportDefaultConcurrency(clamped)
showMessage(`?????????????? ${clamped}`, true) showMessage(`\u5df2\u66f4\u65b0\u5bfc\u51fa\u5e76\u53d1\u6570\u4e3a ${clamped}`, true)
}} }}
/> />
</div> </div>