Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. computed: {
  2.     saved_queries() { return this.$store.state.list.saved_queries || [] },
  3. },
  4. async mounted() {
  5.     if(!this.$store.state.listed.saved_queries) {
  6.         try {
  7.             await this.$store.dispatch('list', { field: 'saved_queries' })
  8.         }
  9.         catch(e) {
  10.             this.error = e.body || 'Unexpected Error'
  11.         }
  12.     }
  13.  
  14.     this.showContent = true
  15.     this.loading = false
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement