|
@@ -243,12 +243,18 @@ function logout() {
|
|
}
|
|
}
|
|
|
|
|
|
async function getNextStudent() {
|
|
async function getNextStudent() {
|
|
- if (isLast) return;
|
|
|
|
|
|
+ if (isLast) {
|
|
|
|
+ void message.warning("已经是最后一份!");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
student = await getStudent(studentIds[currentIndex + 1]);
|
|
student = await getStudent(studentIds[currentIndex + 1]);
|
|
}
|
|
}
|
|
|
|
|
|
async function getPreviousStudent() {
|
|
async function getPreviousStudent() {
|
|
- if (isFirst) return;
|
|
|
|
|
|
+ if (isFirst) {
|
|
|
|
+ void message.warning("已经是第一份!");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
student = await getStudent(studentIds[currentIndex - 1]);
|
|
student = await getStudent(studentIds[currentIndex - 1]);
|
|
}
|
|
}
|
|
|
|
|