|
@@ -89,7 +89,7 @@ export default function useDraw() {
|
|
|
if (!res) return;
|
|
|
task.value = res;
|
|
|
trackConfig.value = {
|
|
|
- pictureType: res.pictureType.split(','),
|
|
|
+ pictureType: res.pictureType.split(',') as PictureTypeEnum[],
|
|
|
outputDir: res.outputDir,
|
|
|
curOutputDir: res.outputDir,
|
|
|
outputDirIsDefault: false,
|
|
@@ -167,7 +167,7 @@ export default function useDraw() {
|
|
|
cardData = cardContent.pages;
|
|
|
}
|
|
|
|
|
|
- function getOutputPath(type: PictureTypeEnum, index: number | undefined) {
|
|
|
+ function getOutputPath(type: PictureTypeEnum, index?: number) {
|
|
|
let filename = rawTask.studentCode;
|
|
|
if (index !== undefined) {
|
|
|
filename += `-${index}`;
|