|
@@ -50,11 +50,11 @@ export default defineComponent({
|
|
|
createClassForm.id = props.activeRow.id;
|
|
|
});
|
|
|
const submitForms = () => {
|
|
|
- data.uploading = true;
|
|
|
foemsRef.value.validate(async (error: any) => {
|
|
|
if (error) {
|
|
|
return;
|
|
|
}
|
|
|
+ data.uploading = true;
|
|
|
try {
|
|
|
const res = await resetClass({ ...createClassForm });
|
|
|
message.success('修改成功');
|
|
@@ -62,9 +62,9 @@ export default defineComponent({
|
|
|
emit('getList');
|
|
|
data.uploading = false;
|
|
|
} catch (e) {
|
|
|
- data.uploading = false;
|
|
|
console.log(e);
|
|
|
}
|
|
|
+ data.uploading = false;
|
|
|
});
|
|
|
};
|
|
|
return () => (
|