Skip to content

Instantly share code, notes, and snippets.

@acidjazz
Created August 9, 2018 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acidjazz/95c5b7728a759fbd09fdfe61f84ccd8f to your computer and use it in GitHub Desktop.
Save acidjazz/95c5b7728a759fbd09fdfe61f84ccd8f to your computer and use it in GitHub Desktop.
methods: {
query (params) {
let i = 0
for (let key in params) {
setTimeout(() => {
this.$router.push({ query: {...this.$route.query, [key]: params[key] }})
} , 100*++i)
}
setTimeout(() => this.get(), 100*++i)
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment