mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-02 15:36:56 +00:00
perf: update platform detail
This commit is contained in:
parent
69f263e491
commit
d3a0f69b4c
@ -182,7 +182,7 @@ export default {
|
||||
if (formatterArgs.getTitle) {
|
||||
title = formatterArgs.getTitle({ col, row, cellValue })
|
||||
}
|
||||
let resource = resolvedRoute?.meta?.title || resolvedRoute?.name
|
||||
let resource = resolvedRoute?.meta?.title || resolvedRoute?.name || ''
|
||||
resource = resource.replace('Detail', '').replace('详情', '')
|
||||
|
||||
if (resource) {
|
||||
|
@ -67,7 +67,7 @@ export default {
|
||||
can: vm.$hasPerm('accounts.view_changesecretexecution'),
|
||||
getRoute({ row }) {
|
||||
return {
|
||||
name: 'AccountChangeSecretList',
|
||||
name: 'AccountChangeSecretDetail',
|
||||
query: {
|
||||
tab: 'AccountChangeSecretExecutionList',
|
||||
automation_id: row.id
|
||||
|
@ -5,7 +5,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import IBox from '../../../../components/Common/IBox'
|
||||
import IBox from '@/components/Common/IBox'
|
||||
import { GenericCreateUpdateForm } from '@/layout/components'
|
||||
import { platformFieldsMeta, setAutomations, updateAutomationParams } from '../const'
|
||||
import { mapGetters } from 'vuex'
|
||||
@ -30,7 +30,7 @@ export default {
|
||||
ansible_enabled: true
|
||||
}
|
||||
},
|
||||
url: `/api/v1/assets/platforms/${this.object.id}/`,
|
||||
url: `/api/v1/assets/platforms/`,
|
||||
disabled: !canEdit,
|
||||
hasReset: false,
|
||||
hasDetailInMsg: false,
|
||||
|
Loading…
Reference in New Issue
Block a user