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