Commit d32405a9 by zhaochengxiang

提示

parent 602dc804
......@@ -103,11 +103,24 @@ const FC = (props) => {
if (data && !data.success) {
if (data.msg) {
const msg = (data?.msg||'').replace(RegExp("\n", "g"),"<br />")
showNotifaction('提示', msg, 5)
modal.warning({
title: '提示',
content: msg,
okText: '确定',
onOk: () => {
window.close()
}
});
}
} else {
showMessage('success', '提交成功')
window.close()
modal.success({
title: '提示',
content: '提交成功',
okText: '确定',
onOk: () => {
window.close()
}
});
}
},
error: () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment