|
@@ -7,7 +7,7 @@ import {
|
|
|
} from '@/api/task';
|
|
|
import { Task, Track, SpecialTag, Question } from '@/api/types/task';
|
|
|
import { TrackConfigType } from '@/store/modules/app/types';
|
|
|
-import { PictureTypeEnum } from '@/constants/enumerate';
|
|
|
+import { PictureTypeEnum, PICTURE_TYPE } from '@/constants/enumerate';
|
|
|
import { calcSum, maxNum, strGbLen } from '@/utils/utils';
|
|
|
import { useAppStore } from '@/store';
|
|
|
|
|
@@ -185,7 +185,7 @@ export default function useDraw(winId: number) {
|
|
|
function checkOnlyOrigin() {
|
|
|
return (
|
|
|
trackConfig.value.pictureType.length === 1 &&
|
|
|
- trackConfig.value.pictureType[0] === 'track'
|
|
|
+ trackConfig.value.pictureType[0] === 'origin'
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -228,7 +228,7 @@ export default function useDraw(winId: number) {
|
|
|
task.value.examName,
|
|
|
`${rawTask.courseName}(${rawTask.courseCode})`,
|
|
|
rawTask.paperNumber,
|
|
|
- type,
|
|
|
+ PICTURE_TYPE[type],
|
|
|
filename,
|
|
|
];
|
|
|
return window.api.joinPath(paths);
|