diff --git a/packages/toolbars/generate-vue/src/generateCode.js b/packages/toolbars/generate-vue/src/generateCode.js index 097e4e9..54d3b14 100644 --- a/packages/toolbars/generate-vue/src/generateCode.js +++ b/packages/toolbars/generate-vue/src/generateCode.js @@ -99,7 +99,7 @@ function generateStores({ globalState }) { actions: { ${getStoreFnStrs(actions)} } -})` +})\n` result += storeCode }) diff --git a/packages/toolbars/media/src/Main.vue b/packages/toolbars/media/src/Main.vue index 92d0d8c..a8480ce 100644 --- a/packages/toolbars/media/src/Main.vue +++ b/packages/toolbars/media/src/Main.vue @@ -358,7 +358,8 @@ export default { (deviceType) => { state.activeIndex = mediaMap[deviceType].index state.readonly = deviceType !== 'mdx' - } + }, + { immediate: true } ) watchEffect(() => {