refactor(PageModal): ♻️ 修改操作成功提示
This commit is contained in:
@@ -113,11 +113,11 @@ const handleSubmit = useThrottleFn(() => {
|
|||||||
let msg = "操作成功";
|
let msg = "操作成功";
|
||||||
if (props.modalConfig.component === "drawer") {
|
if (props.modalConfig.component === "drawer") {
|
||||||
if (props.modalConfig.drawer?.title) {
|
if (props.modalConfig.drawer?.title) {
|
||||||
msg = props.modalConfig.drawer?.title;
|
msg = `${props.modalConfig.drawer?.title}成功`;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (props.modalConfig.dialog?.title) {
|
if (props.modalConfig.dialog?.title) {
|
||||||
msg = props.modalConfig.dialog?.title;
|
msg = `${props.modalConfig.dialog?.title}成功`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ElMessage.success(msg);
|
ElMessage.success(msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user