Data in VUex is not persisted and is lost in the Store when the page is refreshed.

The vuex-Persist plug-in is introduced to persist vuex data.

Solution:

Installation steps

NPM install –save vuex-persist

Store. Js introduction

Create objects and configure them

Introduce the Vuex plug-in