mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
Fixed error caused by typo
This commit is contained in:
parent
413bce4ce4
commit
0308f13dab
@ -63,13 +63,15 @@ if (typeof storeData !== 'function') {
|
||||
|
||||
//if file is foo/index.js we want to overwrite properties from foo.js
|
||||
//but not from appended mods like foo/actions.js
|
||||
var appendedMods = []
|
||||
var appendedMods = {}
|
||||
if (module[name].appends) {
|
||||
fileModule.appends = module[name].appends
|
||||
appendedMods.appends = module[name].appends
|
||||
for (let append of module[name].appends)
|
||||
appendedMods[append] = module[name][append]
|
||||
}
|
||||
module[name] = Object.assign(module[name], fileModule, appendedMods)
|
||||
|
||||
module[name] = Object.assign({}, module[name], fileModule, appendedMods)
|
||||
module[name].namespaced = true
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user