How to use the quasar.LocalStorage.has function in quasar

To help you get started, we’ve selected a few quasar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github quasarframework / quasar / quasar / dev / components / other / web-storage.vue View on Github external
toggle (key) {
      if (LocalStorage.has(key)) {
        LocalStorage.remove(key)
      }
      else {
        LocalStorage.set(key, `${key}-value`)
      }
      this.update()
    },
    clear () {
github sergiuwd / Taskista / src / components / Index.vue View on Github external
created () {
    if (!LocalStorage.has('lists')) {
      LocalStorage.set('lists', [])
    }
    this.$root.lists = LocalStorage.get.item('lists')
  },
  methods: {
github sharpshark28 / my_spells / src / App.vue View on Github external
mounted () {
    if (LocalStorage.has('chosen')) {
      dispatch({type: 'LOAD_LOCAL_CHOSEN'})
    }

    if (!this.state.spells.loaded) {
      fetchSpells()
    }
  }
}