How to use the store2.remove function in store2

To help you get started, we’ve selected a few store2 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 lincenying / mmf-blog-vue2-ssr / src / utils / index.js View on Github external
Vue.nextTick().then(() => {
            if (document.body.clientHeight >= scrollTop + clientHeight) {
                window.scrollTo(0, scrollTop)
            }
            ls.remove(path)
        })
    }
github lincenying / mmf-blog-vue2-ssr / src / pages / index.vue View on Github external
beforeRouteLeave (to, from, next) {
        const scrollTop = document.body.scrollTop
        const path = this.$route.path
        if (scrollTop) ls.set(path, scrollTop)
        else ls.remove(path)
        next()
    }
}

store2

Better localStorage

MIT
Latest version published 3 months ago

Package Health Score

85 / 100
Full package analysis