user_finder.js (341B)
1 const UserFinder = { 2 data: () => ({ 3 username: undefined, 4 hidden: true, 5 error: false, 6 loading: false 7 }), 8 methods: { 9 findUser (username) { 10 this.$router.push({ name: 'user-search', query: { query: username } }) 11 }, 12 toggleHidden () { 13 this.hidden = !this.hidden 14 } 15 } 16 } 17 18 export default UserFinder