fix(miniprogram): 深度审查修复多个功能问题
Some checks failed
CI / security-audit (push) Has been cancelled
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled

- settings: 清除缓存不再错误读取明文 token,改由 auth store restore 恢复
- appointment: 移除多余的 detail_cache Storage 写入
- reports: 未选择就诊人时显示引导提示而非空白
- health/input: 血压录入验证舒张压必填
- followups: tab 切换时不再清空列表导致闪烁
This commit is contained in:
iven
2026-04-24 18:36:56 +08:00
parent 81cc84e4b2
commit a63043f447
5 changed files with 32 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
import React, { useState, useCallback, useRef } from 'react';
import { View, Text } from '@tarojs/components';
import Taro, { useDidShow, useReachBottom, usePullDownRefresh } from '@tarojs/taro';
import { listAppointments, cancelAppointment } from '../../services/appointment';
import { listAppointments } from '../../services/appointment';
import type { Appointment } from '../../services/appointment';
import EmptyState from '../../components/EmptyState';
import Loading from '../../components/Loading';
@@ -64,10 +64,6 @@ export default function AppointmentList() {
};
const goDetail = (id: string) => {
const item = appointments.find((a) => a.id === id);
if (item) {
Taro.setStorageSync('appointment_detail_cache', item);
}
Taro.navigateTo({ url: `/pages/appointment/detail/index?id=${id}` });
};