cluster-view: prevent route change refresh

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/888/head
Varun Patil 2023-10-24 12:29:16 -07:00
parent 8588a7d190
commit c6358ff644
1 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@
<script lang="ts">
import { defineComponent } from 'vue';
import type { Route } from 'vue-router';
import UserConfig from '../mixins/UserConfig';
import TopMatter from './top-matter/TopMatter.vue';
@ -82,7 +83,8 @@ export default defineComponent({
},
watch: {
async $route() {
async $route(to: Route, from: Route) {
if (to.path === from.path) return;
this.refresh();
},
},