简体   繁体   中英

Vue.js router redirect

I've a method that looks like this:

methods: {
        search () {
            this.$route.router.go({ name: 'Search', Params: { search: this.searchFor }});
        }
    }

Obviously that is not working. How could I get that to work? I'm using vue.js 1.0

你应该看看这个 ,在Params应该params

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM