fix: 修复账号详情su-from-account url

This commit is contained in:
Bai
2023-02-08 19:04:18 +08:00
committed by Jiangjie.Bai
parent 4b06a29f10
commit b7cd39d373

View File

@@ -97,7 +97,7 @@ export default {
model: vm.object.su_from?.id || '',
label: vm.object.su_from?.name ? vm.object.su_from?.name + `(${vm.object.su_from?.username})` : '',
ajax: {
url: `/api/v1/accounts/accounts/${vm.object.id}/su-from-accounts/?fields_size=mini`,
url: `/api/v1/accounts/accounts/su-from-accounts/?account=${vm.object.id}&fields_size=mini`,
transformOption: (item) => {
return { label: item.name + '(' + item.username + ')', value: item.id }
}