bug修复

This commit is contained in:
zhanchao 2026-09-02 14:50:21 +08:00
parent e50d222a02
commit 24ee4a48f5

View File

@ -570,7 +570,10 @@ onLoad((options) => {
fetchArchive();
});
onShow(() => {
onShow(async () => {
//
await getDoctorInfo();
const cached = uni.getStorageSync(STORAGE_KEY);
const cachedId = cached && typeof cached === 'object' ? String(cached._id || cached.id || '') : '';
if (cached && typeof cached === 'object' && (!cachedId || !archiveId.value || cachedId === archiveId.value)) {