router
This commit is contained in:
parent
5bcb3f8d49
commit
6086ec8aad
|
@ -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;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user