|
@@ -250,12 +250,12 @@ const editCheckAsync = async () => {
|
|
|
const fileName = ref("");
|
|
|
provide("fileName", fileName);
|
|
|
const submit = async () => {
|
|
|
- check().then(() => {
|
|
|
+ check().then(async () => {
|
|
|
if (editType.value == "add") {
|
|
|
- addCheckAsync();
|
|
|
+ await addCheckAsync();
|
|
|
reset();
|
|
|
} else {
|
|
|
- editCheckAsync();
|
|
|
+ await editCheckAsync();
|
|
|
reset();
|
|
|
}
|
|
|
});
|