This commit is contained in:
Zy
2026-08-14 15:01:01 +08:00
parent 28959cff23
commit 3fa96351d7
13 changed files with 88 additions and 170 deletions

View File

@@ -73,12 +73,12 @@ const submitForm = () => {
formRef.value?.validate(async (valid: boolean) => {
if (valid) {
if (userid.value) {
updateMaterial(form.value).then((res) => {
updateMaterial(form.value).then(() => {
ElMessage.success('编辑成功');
cancelForm();
});
} else {
addMaterial(form.value).then((res) => {
addMaterial(form.value).then(() => {
ElMessage.success('添加成功');
cancelForm();
});