From bd110cc2ea0bc054002a961121848835f407288d Mon Sep 17 00:00:00 2001 From: jialin Date: Thu, 14 Mar 2024 13:11:05 +0800 Subject: [PATCH] fix: resource list no run detial button --- components.d.ts | 3 --- src/views/application-management/services/config/index.ts | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/components.d.ts b/components.d.ts index 2d519971..ad16d299 100644 --- a/components.d.ts +++ b/components.d.ts @@ -24,7 +24,6 @@ declare module 'vue' { AGrid: typeof import('@arco-design/web-vue')['Grid']; AGridItem: typeof import('@arco-design/web-vue')['GridItem']; AInput: typeof import('@arco-design/web-vue')['Input']; - AInputGroup: typeof import('@arco-design/web-vue')['InputGroup']; AInputNumber: typeof import('@arco-design/web-vue')['InputNumber']; AInputPassword: typeof import('@arco-design/web-vue')['InputPassword']; AInputSearch: typeof import('@arco-design/web-vue')['InputSearch']; @@ -47,8 +46,6 @@ declare module 'vue' { ASpace: typeof import('@arco-design/web-vue')['Space']; ASpin: typeof import('@arco-design/web-vue')['Spin']; AStatistic: typeof import('@arco-design/web-vue')['Statistic']; - AStep: typeof import('@arco-design/web-vue')['Step']; - ASteps: typeof import('@arco-design/web-vue')['Steps']; ASubMenu: typeof import('@arco-design/web-vue')['SubMenu']; ASwitch: typeof import('@arco-design/web-vue')['Switch']; ATable: typeof import('@arco-design/web-vue')['Table']; diff --git a/src/views/application-management/services/config/index.ts b/src/views/application-management/services/config/index.ts index b199bbf8..202ff450 100644 --- a/src/views/application-management/services/config/index.ts +++ b/src/views/application-management/services/config/index.ts @@ -484,9 +484,7 @@ export const serviceActions: MoreAction[] = [ status: 'normal', disabled: false, filterFun(currentInfo) { - return ( - get(currentInfo, 'status.summaryStatus') !== ServiceStatus.Undeployed - ); + return get(currentInfo, 'runs', []).length > 0; } }, {