fix(miniprogram): 深度审查修复多个功能问题
- settings: 清除缓存不再错误读取明文 token,改由 auth store restore 恢复 - appointment: 移除多余的 detail_cache Storage 写入 - reports: 未选择就诊人时显示引导提示而非空白 - health/input: 血压录入验证舒张压必填 - followups: tab 切换时不再清空列表导致闪烁
This commit is contained in:
@@ -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}` });
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user