Commit 8fb2964d by zhaochengxiang

接口提示显示

parent 55c1825c
......@@ -631,8 +631,10 @@ const FC = (props) => {
dataAssetIds: rightRow?.id
}
},
callback: () => {
showMessage("success","发布成功")
callback: (data) => {
if (data?.message) {
showMessage("success", data?.message)
}
getAssets()
setSelectedRows([])
}
......
......@@ -4,6 +4,7 @@ import { debounceTime, Subject } from 'rxjs'
import produce from "immer"
import { dispatch } from '../../../model'
import { showMessage } from "../../../util"
const FC = (props) => {
const { visible, items, onCancel } = props
......@@ -29,7 +30,11 @@ const FC = (props) => {
},
data: rows
},
callback: () => {
callback: (data) => {
if (data?.message) {
showMessage("success", data?.message)
}
setWaiting(false)
onCancel(true)
},
......
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