vuex-electron icon indicating copy to clipboard operation
vuex-electron copied to clipboard

Can't resolve '@/components/...' when importing router into Vuex module file

Open Liupeng8 opened this issue 5 years ago • 5 comments

Hey guys,I have the same problem with this. https://github.com/SimulatedGREG/electron-vue/issues/758

The documentation is still not clear enough, such as the parameters in the whitelist are too general.

In my application, vuex contains app, user, win 3 modules. In the main I only use win, the other 2 are used in the renderer, how can I set createPersistedState()

`createPersistedState({ whitelist: ["whitelistedMutation", "anotherWhitelistedMutation"],

// or

whitelist: (mutation) => { return true },

// or

blacklist: ["ignoredMutation", "anotherIgnoredMutation"],

// or

blacklist: (mutation) => { return true } })`

Help me answer if you have time, thank you

Liupeng8 avatar Apr 25 '19 07:04 Liupeng8

@AshfieldFox Can you help me with this question? think you.

Liupeng8 avatar Apr 25 '19 09:04 Liupeng8

I just reply that issue yet. Here it is and hope it would be effective. https://github.com/SimulatedGREG/electron-vue/issues/758#issuecomment-486619093

AshfieldFox avatar Apr 25 '19 10:04 AshfieldFox

@AshfieldFox Is there a way to load only the stores that need to communicate with each other in the main process? If the main process is loaded into the store and the structure in the rendering process is destroyed, the role of vuex-electron will be greatly reduced.

Liupeng8 avatar Apr 25 '19 10:04 Liupeng8

https://github.com/vue-electron/vuex-electron/issues/44

akodkod avatar Aug 29 '19 14:08 akodkod

Is there a good solution?

yanwenjia avatar Apr 07 '20 10:04 yanwenjia