优化loading

This commit is contained in:
gyq
2025-04-09 17:57:51 +08:00
parent e443b5b51e
commit f466bdc9f4
10 changed files with 23 additions and 23 deletions

View File

@@ -235,13 +235,13 @@ async function submitHandle() {
}
Loading.value = true;
await printerAdd(form.value, form.value.id ? "put" : "post");
Loading.value = false;
ElMessage.success(form.value.id ? "编辑成功" : "添加成功");
printStore.init();
router.back();
} catch (error) {
console.log(error);
}
Loading.value = false;
}
// 查询打印机详情