fix(web+config): E2E 测试发现的问题修复
- 排班状态过滤 'active' → 'enabled'(与后端 validation.rs 一致) - 全局 403 拦截器不再弹出"权限不足" toast(AuthButton 已隐藏入口) - 角色未关联菜单时回退显示全部(避免种子数据阶段菜单空白)
This commit is contained in:
@@ -229,7 +229,7 @@ export default function AppointmentList() {
|
||||
setScheduleHint(`该医生在 ${selectedDate} 暂无排班,请确认是否需要先创建排班`);
|
||||
} else {
|
||||
const slots = schedules
|
||||
.filter((s) => s.status === 'active' && s.current_appointments < s.max_appointments)
|
||||
.filter((s) => s.status === 'enabled' && s.current_appointments < s.max_appointments)
|
||||
.map((s) => `${s.start_time}-${s.end_time}(${s.current_appointments}/${s.max_appointments})`)
|
||||
.join('、');
|
||||
setScheduleHint(slots ? `可约时段:${slots}` : `该医生在 ${selectedDate} 排班已满或已停用`);
|
||||
|
||||
Reference in New Issue
Block a user