fix: 修复账号详情更新切换自报错问题

This commit is contained in:
“huailei000”
2023-04-20 11:30:15 +08:00
committed by huailei
parent b7fd52fa6e
commit 84d4aebdeb

View File

@@ -196,7 +196,7 @@ export default {
callbacks: Object.freeze({
change: (value) => {
const relationUrl = `/api/v1/accounts/accounts/${this.object.id}/`
return this.$axios.patch(relationUrl, { su_from: value })
return this.$axios.patch(relationUrl, { su_from: value, name: this.object.name })
}
})
}