|
@@ -20,7 +20,7 @@ const handGetAnswer = () => {
|
|
|
const props = defineProps<{
|
|
|
defaultList: string[];
|
|
|
qrValue: string;
|
|
|
- pictureAnswer?: { order: number; fileUrl: string };
|
|
|
+ pictureAnswer?: { order: number; fileUrl: string; cover?: boolean };
|
|
|
uploadModalVisible: boolean;
|
|
|
}>();
|
|
|
|
|
@@ -49,7 +49,11 @@ watch(
|
|
|
(value) => {
|
|
|
uploaded = true;
|
|
|
if (value?.order === order) {
|
|
|
- totalList.push(...[...new Set(value.fileUrl.split(","))]);
|
|
|
+ if (value?.cover) {
|
|
|
+ totalList = [...new Set(value.fileUrl.split(","))];
|
|
|
+ } else {
|
|
|
+ totalList.push(...[...new Set(value.fileUrl.split(","))]);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
);
|