mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 09:43:32 +00:00
Fixed: Domain Tab
This commit is contained in:
@@ -182,10 +182,14 @@ export default {
|
||||
if (this.addExtraMoreActions) {
|
||||
actions.extraMoreActions = [...actions.extraMoreActions, ...this.addExtraMoreActions]
|
||||
}
|
||||
const create = this.createAction
|
||||
if (create) {
|
||||
create.dropdown = this.recentPlatforms
|
||||
|
||||
if (!actions.hasCrate) {
|
||||
return actions
|
||||
}
|
||||
|
||||
const create = this.createAction
|
||||
create.dropdown = this.recentPlatforms
|
||||
|
||||
const extraActions = actions.extraActions || []
|
||||
actions.extraActions = [create, ...extraActions]
|
||||
// actions.extraActions[0].dropdown = platforms
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<TwoCol>
|
||||
<BaseList ref="AssetBaseList" v-bind="tableConfig" />
|
||||
<BaseList ref="AssetBaseList" v-bind="config" />
|
||||
</TwoCol>
|
||||
<AddAssetDialog :object="object" :setting="addAssetSetting" @close="handleAddAssetDialogClose" />
|
||||
</div>
|
||||
@@ -27,7 +27,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
tableConfig: {
|
||||
config: {
|
||||
category: 'all',
|
||||
url: `/api/v1/assets/assets/?domain=${this.object.id}&is_gateway=0`,
|
||||
tableConfig: {
|
||||
|
Reference in New Issue
Block a user