mirror of https://github.com/halo-dev/halo
fix: unable to change attachment name (halo-dev/console#434)
Signed-off-by: Ryan Wang <i@ryanc.cc>pull/3445/head
parent
e081656d96
commit
cb1998e52f
|
@ -204,7 +204,8 @@ export default {
|
|||
return
|
||||
}
|
||||
try {
|
||||
await apiClient.attachment.update(this.attachment.id, this.attachment)
|
||||
// TODO 修改 sdk 的方法为 updateName
|
||||
await apiClient.attachment.update(this.attachment.id, this.attachment.name)
|
||||
} catch (error) {
|
||||
this.$log.error(error)
|
||||
} finally {
|
||||
|
|
Loading…
Reference in New Issue