mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-17 20:35:07 +08:00
【代码优化】AI:音乐、图片的更新状态的接口调整
This commit is contained in:
@ -231,7 +231,10 @@ const handleUpdatePublicStatusChange = async (row: ImageVO) => {
|
||||
const text = row.publicStatus ? '公开' : '私有'
|
||||
await message.confirm('确认要"' + text + '"该图片吗?')
|
||||
// 发起修改状态
|
||||
await ImageApi.updateImagePublicStatus(row.id, row.publicStatus)
|
||||
await ImageApi.updateImage({
|
||||
id: row.id,
|
||||
publicStatus: row.publicStatus
|
||||
})
|
||||
await getList()
|
||||
} catch {
|
||||
row.publicStatus = !row.publicStatus
|
||||
|
Reference in New Issue
Block a user