|
@@ -85,6 +85,7 @@
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
import { Question } from "@/types";
|
|
import { Question } from "@/types";
|
|
|
|
+import { message } from "ant-design-vue";
|
|
import { computed, defineComponent, reactive, watch } from "vue";
|
|
import { computed, defineComponent, reactive, watch } from "vue";
|
|
import { store } from "./store";
|
|
import { store } from "./store";
|
|
|
|
|
|
@@ -199,6 +200,10 @@ export default defineComponent({
|
|
}
|
|
}
|
|
|
|
|
|
function reject() {
|
|
function reject() {
|
|
|
|
+ if (checkedQuestions.length === 0) {
|
|
|
|
+ message.warn({ content: "请先选择试题。" });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
emit("reject", checkedQuestions);
|
|
emit("reject", checkedQuestions);
|
|
}
|
|
}
|
|
|
|
|