fix: route params not reacting to changes (#11651)
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
|
import { computed } from 'vue';
|
||||||
|
|
||||||
const { row } = defineProps({
|
const { row } = defineProps({
|
||||||
row: {
|
row: {
|
||||||
type: Object,
|
type: Object,
|
||||||
@@ -6,10 +8,10 @@ const { row } = defineProps({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const routerParams = {
|
const routerParams = computed(() => ({
|
||||||
name: 'inbox_conversation',
|
name: 'inbox_conversation',
|
||||||
params: { conversation_id: row.original.conversationId },
|
params: { conversation_id: row.original.conversationId },
|
||||||
};
|
}));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ const columns = [
|
|||||||
const [ratingObject = {}] = CSAT_RATINGS.filter(
|
const [ratingObject = {}] = CSAT_RATINGS.filter(
|
||||||
rating => rating.value === giveRating
|
rating => rating.value === giveRating
|
||||||
);
|
);
|
||||||
|
|
||||||
return h(
|
return h(
|
||||||
'span',
|
'span',
|
||||||
{
|
{
|
||||||
@@ -109,13 +110,7 @@ const columns = [
|
|||||||
columnHelper.accessor('conversationId', {
|
columnHelper.accessor('conversationId', {
|
||||||
header: '',
|
header: '',
|
||||||
width: 100,
|
width: 100,
|
||||||
cell: cellProps => {
|
cell: cellProps => h(ConversationCell, cellProps),
|
||||||
const { row } = cellProps;
|
|
||||||
return h(ConversationCell, {
|
|
||||||
key: row.original.conversationId,
|
|
||||||
row,
|
|
||||||
});
|
|
||||||
},
|
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user