fix: unable to change attachment name (halo-dev/console#434)

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/3445/head
Ryan Wang 2022-02-11 15:55:39 +08:00 committed by GitHub
parent e081656d96
commit cb1998e52f
1 changed files with 2 additions and 1 deletions

View File

@ -204,7 +204,8 @@ export default {
return return
} }
try { 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) { } catch (error) {
this.$log.error(error) this.$log.error(error)
} finally { } finally {