mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
no more includes
This commit is contained in:
parent
9fd04a6ec8
commit
13aff87b9b
@ -23,7 +23,7 @@ let store
|
||||
let storeData = {}
|
||||
|
||||
// Check if store/index.js returns a vuex store
|
||||
if (filenames.includes('./index.js')) {
|
||||
if (filenames.indexOf('./index.js') !== -1) {
|
||||
let mainModule = getModule('./index.js')
|
||||
if (mainModule.commit) {
|
||||
store = mainModule
|
||||
|
Loading…
Reference in New Issue
Block a user