Skip to content

Commit a39e34f

Browse files
committed
fix: Add link to resource
1 parent 6fb0a15 commit a39e34f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

coreui/src/views/bread/Breads.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
<strong>{{item.name}}</strong>
2626
</td>
2727
</template>
28+
<template #goto="{item}">
29+
<td>
30+
<CButton color="primary" @click="goto( item.id )">Go to resources</CButton>
31+
</td>
32+
</template>
2833
<template #show="{item}">
2934
<td>
3035
<CButton color="primary" @click="showBread( item.id )">Show</CButton>
@@ -56,7 +61,7 @@ export default {
5661
data: () => {
5762
return {
5863
items: [],
59-
fields: ['name', 'show', 'edit', 'delete'],
64+
fields: ['name', 'goto', 'show', 'edit', 'delete'],
6065
currentPage: 1,
6166
perPage: 5,
6267
totalRows: 0,
@@ -70,6 +75,9 @@ export default {
7075
computed: {
7176
},
7277
methods: {
78+
goto( id){
79+
this.$router.push({path: `resource/${id.toString()}/resource`})
80+
},
7381
breadLink (id) {
7482
return `bread/${id.toString()}`
7583
},

0 commit comments

Comments
 (0)