[Update] 修复自定义平台列表在详情页删除失败的bug

pull/3890/head
Bai 2020-04-14 10:42:40 +08:00
parent 287236a447
commit d969563e43
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ $(document).ready(function () {
var $this = $(this);
var name = "{{ object.name}}";
var uid = "{{ object.id }}";
var the_url = '{% url "api-assets:asset-platform-detail" pk=DEFAULT_PK %}'.replace('{{ DEFAULT_PK }}', uid);
var the_url = '{% url "api-assets:platform-detail" pk=DEFAULT_PK %}'.replace('{{ DEFAULT_PK }}', uid);
var redirect_url = "{% url 'assets:platform-list' %}";
objectDelete($this, name, the_url, redirect_url);
})