Skip to content

Commit 9c3018b

Browse files
committed
fix
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent b999d35 commit 9c3018b

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

ui/src/components/view/ListView.vue

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -366,18 +366,11 @@
366366
</template>
367367
<template v-if="column.key === 'domain'">
368368
<span v-if="record.domainid && $store.getters.userInfo.roletype !== 'User'">
369-
<template v-if="record.domainid.toString().includes(',')">
370-
<template v-for="(id, idx) in record.domainid.toString().split(',')" :key="id">
371-
<router-link :to="{ path: '/domain/' + id, query: { tab: 'details' } }">
372-
{{ record.domain.split(',')[idx] || id }}
373-
</router-link>
374-
<span v-if="idx < record.domainid.split(',').length - 1">, </span>
375-
</template>
376-
</template>
377-
<template v-else>
378-
<router-link :to="{ path: '/domain/' + record.domainid, query: { tab: 'details' } }">
379-
{{ record.domain || text }}
369+
<template v-for="(id, idx) in record.domainid.split(',')" :key="id">
370+
<router-link :to="{ path: '/domain/' + id, query: { tab: 'details' } }">
371+
{{ record.domain.split(',')[idx] || id }}
380372
</router-link>
373+
<span v-if="idx < record.domainid.split(',').length - 1">, </span>
381374
</template>
382375
</span>
383376
<span v-else>{{ text }}</span>

0 commit comments

Comments
 (0)