|
@@ -49,11 +49,11 @@ async function updateTask() {
|
|
|
message.info({ content: "获取任务中...", duration: 1.5, key: mkey });
|
|
|
let res = await getSingleStuTask();
|
|
|
message.success({
|
|
|
- content: res.data.task.libraryId ? "获取成功" : "无任务",
|
|
|
+ content: res.data.task.studentId ? "获取成功" : "无任务",
|
|
|
key: mkey,
|
|
|
});
|
|
|
|
|
|
- if (res.data.task) {
|
|
|
+ if (res.data.task.studentId) {
|
|
|
store.setting.fileServer = res.data.fileServer;
|
|
|
store.setting.splitConfig = res.data.splitConfig;
|
|
|
store.setting.groupNumber = res.data.groupNumber;
|