mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-01 07:01:26 +00:00
Merge pull request #1506 from jumpserver/pr@dev@org_detail_del_bug
fix: 组织管理 详情bug
This commit is contained in:
commit
57b80ef3fe
@ -9,9 +9,8 @@
|
||||
<script>
|
||||
import { GenericDetailPage, TabPage } from '@/layout/components'
|
||||
import OrganizationDetail from './OrganizationDetail'
|
||||
import { getApiPath } from '@/utils/common'
|
||||
const performDelete = function() {
|
||||
const url = getApiPath(this)
|
||||
const url = `${this.url}/${this.$route.params.id}/`
|
||||
return this.$axios.delete(url)
|
||||
}
|
||||
export default {
|
||||
@ -33,6 +32,9 @@ export default {
|
||||
}
|
||||
],
|
||||
actions: {
|
||||
deleteApiUrl: `${this.url}/${this.$route.params.id}/`,
|
||||
canUpdate: this.$hasPerm('orgs.change_organization'),
|
||||
canDelete: this.$hasPerm('orgs.delete_organization'),
|
||||
deleteCallback: function() {
|
||||
const msg = this.$t('xpack.Organization.DeleteOrgMsg')
|
||||
const title = this.$t('xpack.Organization.DeleteOrgTitle')
|
||||
|
Loading…
Reference in New Issue
Block a user