[Bugfix] 修复资产授权详情页 删除弹出框的权限名显示不对

pull/2966/head
jym503558564 2019-07-16 15:40:41 +08:00
parent 6eaa1bc3f9
commit 1993dba2e0
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ $(document).ready(function () {
})
.on('click', '.btn-delete-perm', function () {
var $this = $(this);
var name = "{{ asset_permission.name }}";
var name = "{{ object.name }}";
var uid = "{{ object.id }}";
var the_url = '{% url "api-perms:asset-permission-detail" pk=DEFAULT_PK %}'.replace('{{ DEFAULT_PK }}', uid);
var redirect_url = "{% url 'perms:asset-permission-list' %}";