Put the api data in vuex and refresh the page normally, then retrieve the interface data and store it in vuex, but it becomes empty?

I put all the data requested by the API in the vuex, which is normal all the time, but the data becomes empty when I refresh the page manually. Although the vuex is emptied every time I refresh the page, my API request operation and putting the requested data into the vuex are obviously written in the mounted stage. In this case, even if the refresh can put the data back into the vuex, why is it empty?

Aug.17,2021
When the

page is reloaded, the content in the Vuex is also reloaded.
for direct local storage without being lost, you can use localstorage or sessionstorage


tell me what to do. The request to create an interface layer responsible for the interface under the
src/api directory only requests the interface
src/store/module directory to create a module in the actions request to execute the method in the api layer
the mounted in the component determines whether the data in the state in the vuex is empty if it is empty to execute this.$store.dispatch ('asdad')

        computed:{
            articles(){
                return this.$store.state.module.data
            }
        },
        mounted(){
            if (this.articles <= 0){
                this.$store.dispatch('actions')
            } 
        }
Menu