Commit 8fb2964d by zhaochengxiang

接口提示显示

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