Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Liupeng8 opened this issue Apr 25, 2019 · 5 comments

Comments

@Liupeng8
Copy link

Hey guys,I have the same problem with this. SimulatedGREG/electron-vue#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
Copy link
Author

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

@AshfieldFox
Copy link

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

@Liupeng8
Copy link
Author

@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.

@akodkod
Copy link
Contributor

akodkod commented Aug 29, 2019

#44

@yanwenjia
Copy link

Is there a good solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants