refactor(PageModal): ♻️ 修改操作成功提示

This commit is contained in:
cshaptx4869
2024-05-24 10:27:26 +08:00
parent 45ca474571
commit c8bf3927c9

View File

@@ -113,11 +113,11 @@ const handleSubmit = useThrottleFn(() => {
let msg = "操作成功";
if (props.modalConfig.component === "drawer") {
if (props.modalConfig.drawer?.title) {
msg = props.modalConfig.drawer?.title;
msg = `${props.modalConfig.drawer?.title}成功`;
}
} else {
if (props.modalConfig.dialog?.title) {
msg = props.modalConfig.dialog?.title;
msg = `${props.modalConfig.dialog?.title}成功`;
}
}
ElMessage.success(msg);