|
@@ -1816,7 +1816,7 @@ async function prepareInitialData(userId, compilation, example) {
|
|
|
await updateUsedList(userId, compilation);
|
|
|
const logData = {
|
|
|
key: uuidV1(),
|
|
|
- content: '正在初始化数据,请稍候……',
|
|
|
+ content: '正在加载例题,请稍候……',
|
|
|
userID: userId,
|
|
|
compilationID: compilation,
|
|
|
status: 'start',
|
|
@@ -1833,10 +1833,9 @@ async function prepareInitialData(userId, compilation, example) {
|
|
|
copyCompleRationSection(userId, compilation),
|
|
|
copyCompleGljSection(userId, compilation)
|
|
|
];
|
|
|
- /* 2021-01-19 第一次的时候不自动加载例题,右键加载
|
|
|
- if (example && example.length > 0) {
|
|
|
+ if (example && example.length > 0) {
|
|
|
prepareTask.push(copyExample(userId, compilation, example));
|
|
|
- } */
|
|
|
+ }
|
|
|
await Promise.all(prepareTask);
|
|
|
} catch (error) {
|
|
|
doc.errorMsg = '加载例题失败,请检查例题项目是否存在!';
|