export interface StateInterface {
// Define your own store structure, using submodules if needed
// example: ExampleStateInterface;
// Declared as unknown to avoid linting issue. Best to strongly type as per the line above.
system: SystemStateInterface
setting: {
route: RouteStateInterface
theme: ThemeStateInterface
}
}
vuex-persistedstate
version: ^4.0.0-beta.3export interface StateInterface { // Define your own store structure, using submodules if needed // example: ExampleStateInterface; // Declared as unknown to avoid linting issue. Best to strongly type as per the line above. system: SystemStateInterface setting: { route: RouteStateInterface theme: ThemeStateInterface } }
export default store(function (/ { ssrContext } /) { const Store = createStore({
modules: {
system,
setting,
},
})
return Store })
------My sessionstorage has values but the refresh page state is still reset
Excuse me, is there something wrong with the method I used