mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-14 11:55:34 +00:00
perf: Update asset detection logic in AccountRiskList for improved menu display
This commit is contained in:
@@ -43,7 +43,9 @@ export default {
|
||||
asset: ''
|
||||
},
|
||||
treeSetting: {
|
||||
showMenu: true,
|
||||
showMenu: (node) => {
|
||||
return node?.meta?.type === 'asset'
|
||||
},
|
||||
showRefresh: true,
|
||||
showSearch: true,
|
||||
showAssets: true,
|
||||
@@ -55,9 +57,8 @@ export default {
|
||||
menu: [
|
||||
{
|
||||
id: 'check',
|
||||
name: this.$t('Check'),
|
||||
name: this.$t('RiskDetection'),
|
||||
icon: 'scan',
|
||||
has: (node) => node?.meta?.type === 'asset',
|
||||
callback: (node) => {
|
||||
vm.detectDialog.asset = node.id
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user