Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Commit e6a0324

Browse files
authored
Fix a bug when using vuex-electron (#782)
When using `vuex-electron`, this line of import code helps the `mapActions` function work properly.
1 parent 71b06ba commit e6a0324

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

template/src/main/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
{{/if_eq}}
55
import { app, BrowserWindow } from 'electron'{{#if_eq eslintConfig 'airbnb'}} // eslint-disable-line{{/if_eq}}
6+
{{#isEnabled plugins 'vuex-electron'}}
7+
import '../renderer/store'
8+
{{/isEnabled}}
69

710
/**
811
* Set `__static` path to static files in production

0 commit comments

Comments
 (0)