From 93c133349a5ccd7a328371fa113dce69d5611f21 Mon Sep 17 00:00:00 2001
From: liuyu <yu.liu@cqgbkj.com>
Date: 星期二, 22 九月 2026 09:25:39 +0800
Subject: [PATCH] feat(tms): 完成课程考试自测等页面与接口对接
---
apps/jnpf-web-apps-main/src/views/x/tms/trainMode/mock.ts | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/apps/jnpf-web-apps-main/src/views/x/tms/trainMode/mock.ts b/apps/jnpf-web-apps-main/src/views/x/tms/trainMode/mock.ts
index 13e7c0b..7728b0f 100644
--- a/apps/jnpf-web-apps-main/src/views/x/tms/trainMode/mock.ts
+++ b/apps/jnpf-web-apps-main/src/views/x/tms/trainMode/mock.ts
@@ -111,6 +111,7 @@
await delay(null);
const idx = store.findIndex((x) => x.id === id);
if (idx < 0) throw new Error('鍩硅鏂瑰紡涓嶅瓨鍦�');
+ if (store[idx]!.enabled !== '0') throw new Error('璇峰厛鍋滅敤鍚庡啀鍒犻櫎');
store.splice(idx, 1);
return true;
}
--
Gitblit v1.8.0