Skip to content

Commit b9a3cae

Browse files
committed
refactor: update icon handling to use resetUrl function for improved URL management
1 parent 7b1a52b commit b9a3cae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/src/views/application-workflow/component/NodeContent.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div class="list-item flex align-center border border-r-6 p-8-12 cursor" style="width: 39%"
1616
@click.stop="emit('clickNodes', item)" @mousedown.stop="emit('onmousedown', item)">
1717
<el-avatar v-if="isAppIcon(item?.icon)" shape="square" :size="32" style="background: none">
18-
<img :src="item?.icon" alt="" />
18+
<img :src="resetUrl(item?.icon)" alt="" />
1919
</el-avatar>
2020
<el-avatar v-else class="avatar-green" shape="square" :size="32">
2121
<img src="@/assets/node/icon_tool.svg" style="width: 58%" alt="" />
@@ -28,7 +28,7 @@
2828
<div class="flex-between mb-8">
2929
<div class="flex align-center">
3030
<el-avatar v-if="isAppIcon(item?.icon)" shape="square" :size="32" style="background: none">
31-
<img :src="item?.icon" alt="" />
31+
<img :src="resetUrl(item?.icon)" alt="" />
3232
</el-avatar>
3333
<el-avatar v-else class="avatar-green" shape="square" :size="32">
3434
<img src="@/assets/node/icon_tool.svg" style="width: 58%" alt="" />
@@ -54,7 +54,7 @@
5454

5555
<script setup lang="ts">
5656
import { computed } from 'vue'
57-
import { isAppIcon } from '@/utils/common'
57+
import {isAppIcon, resetUrl} from '@/utils/common'
5858
import { isWorkFlow } from '@/utils/application'
5959
6060
const props = defineProps<{
@@ -87,4 +87,4 @@ const toolList = computed(() => props.list ?? props.data?.cardList ?? [])
8787
}
8888
}
8989
}
90-
</style>
90+
</style>

0 commit comments

Comments
 (0)