This commit is contained in:
Baghi 2025-05-03 17:47:38 +03:30
parent 5bcb3f8d49
commit 6086ec8aad

View File

@ -15,6 +15,7 @@
</template>
<script>
export default {
props: ["counter"],
data() {
@ -55,27 +56,27 @@ export default {
}, refreshInterval);
},
// goToRouteName() {
// this.$router.push({
// name: "searchResult",
// query: {
// q: undefined,
// key: this.counter.routeName,
// },
// });
// },
goToRouteName() {
this.$router.push({
name: "search",
query: {
q: undefined,
key: this.counter.routeName,
},
});
},
urlResolver() {
console.log("555");
// const routeData = this.$router.resolve({
// name: "searchResult",
// query: {
// q: undefined,
// key: this.counter.routeName,
// },
// });
// return routeData.href;
const routeData = this.$router.resolve({
name: "search",
query: {
q: undefined,
key: this.counter.routeName,
},
});
return routeData.href;
},
},
};