日期显示

This commit is contained in:
PC-202306242200\Administrator
2024-09-11 17:12:42 +08:00
parent bd9b2ef2d2
commit b8ed7f7443
8 changed files with 10 additions and 4 deletions

View File

@@ -76,6 +76,9 @@ const GoodsTableList: React.FC = () => {
data.isUp = e ? 1 : 0
let _res = await goodsUpdate(data)
message.success(e ? '上架成功' : '下架成功');
if (actionRef.current) {
actionRef.current.reload();
}
}
return <Switch checkedChildren="上架" value={record.isUp == 1 ? true : false} unCheckedChildren="下架" defaultChecked onChange={onChange} />
}