forked from verdnatura/salix-front
fix log view not refreshing when changing id param
This commit is contained in:
parent
0715e86530
commit
6e6c6301d2
|
@ -1,7 +1,10 @@
|
|||
<script setup>
|
||||
import VnLog from 'src/components/common/VnLog.vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
|
||||
const route = useRoute();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VnLog model="Ticket" url="/TicketLogs"></VnLog>
|
||||
<VnLog model="Ticket" url="/TicketLogs" :key="route.params.id"></VnLog>
|
||||
</template>
|
||||
|
|
|
@ -724,8 +724,9 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
|||
</QTd>
|
||||
</template>
|
||||
<template #body-cell-history="{ row }">
|
||||
<QTd v-if="row.hasLogs">
|
||||
<QTd>
|
||||
<QBtn
|
||||
v-if="row.$hasLogs"
|
||||
@click.stop="goToLog(row.id)"
|
||||
color="primary"
|
||||
icon="history"
|
||||
|
|
Loading…
Reference in New Issue