feat: 增加示波器探测参数显示,增加旋转编码器按下的功能
This commit is contained in:
@@ -182,7 +182,7 @@
|
||||
<!-- MD文档 -->
|
||||
<div class="space-y-2">
|
||||
<label class="text-sm font-medium text-base-content"
|
||||
>MD文档 (必需)</label
|
||||
>MD文档 (可选)</label
|
||||
>
|
||||
<div
|
||||
class="border-2 border-dashed border-base-300 rounded-lg p-6 text-center cursor-pointer hover:border-primary hover:bg-primary/5 transition-colors aspect-square flex items-center justify-center"
|
||||
@@ -468,7 +468,7 @@ const canCreateExam = computed(() => {
|
||||
editExamInfo.value.id.trim() !== "" &&
|
||||
editExamInfo.value.name.trim() !== "" &&
|
||||
editExamInfo.value.description.trim() !== "" &&
|
||||
(uploadFiles.value.mdFile !== null || mode.value === "edit")
|
||||
(mode.value === "edit")
|
||||
);
|
||||
});
|
||||
|
||||
@@ -605,11 +605,6 @@ const submitCreateExam = async () => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!uploadFiles.value.mdFile) {
|
||||
alert.error("请上传MD文档");
|
||||
return;
|
||||
}
|
||||
|
||||
isUpdating.value = true;
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user