fix: respect namespaced in store module (#5189)

This commit is contained in:
Xin Du (Clark) 2019-03-08 18:42:20 +00:00 committed by Pooya Parsa
parent 1ea86617ca
commit 9e1ef888d8

View File

@ -82,6 +82,10 @@ function resolveStoreModules(moduleData, filename) {
for (const property of VUEX_PROPERTIES) {
mergeProperty(storeModule, moduleData[property], property)
}
if (moduleData.namespaced === false) {
delete storeModule.namespaced
}
}
function normalizeRoot(moduleData, filePath) {