@tslib/vue-ext
Advanced tools
Comparing version 1.1.12 to 1.1.13
@@ -20,5 +20,5 @@ "use strict"; | ||
registerModule(state, modInfo) { | ||
state.moduleList[modInfo.name] = modInfo; | ||
// 通知state变更 | ||
state.moduleList = state.moduleList; | ||
const m = {}; | ||
m[modInfo.name] = modInfo; | ||
state.moduleList = Object.assign(m, modInfo); | ||
}, | ||
@@ -48,3 +48,3 @@ registerVueComponents(state, value) { | ||
// 强制进行变更 | ||
state.moduleList = state.moduleList; | ||
state.moduleList = Object.assign({}, state.moduleList); | ||
}, | ||
@@ -51,0 +51,0 @@ }, |
{ | ||
"name": "@tslib/vue-ext", | ||
"version": "1.1.12", | ||
"version": "1.1.13", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "config file loader for typescript", |
@@ -48,5 +48,5 @@ import Vue, { VueConstructor } from 'vue'; | ||
registerModule(state, modInfo: IModuleInfo) { | ||
state.moduleList[modInfo.name] = modInfo; | ||
// 通知state变更 | ||
state.moduleList = state.moduleList; | ||
const m: any = {}; | ||
m[modInfo.name] = modInfo; | ||
state.moduleList = Object.assign(m, modInfo); | ||
}, | ||
@@ -82,3 +82,3 @@ registerVueComponents( | ||
// 强制进行变更 | ||
state.moduleList = state.moduleList; | ||
state.moduleList = Object.assign({}, state.moduleList); | ||
}, | ||
@@ -85,0 +85,0 @@ }, |
Sorry, the diff of this file is not supported yet
30978