fix: 修复多个全局变量下载代码出错 (#197)

* fix: 修复多个全局变量下载代码出错
This commit is contained in:
Gene 2023-12-27 19:39:23 +08:00 committed by GitHub
parent f87fa76335
commit f8390c0c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -99,7 +99,7 @@ function generateStores({ globalState }) {
actions: {
${getStoreFnStrs(actions)}
}
})`
})\n`
result += storeCode
})

View File

@ -358,7 +358,8 @@ export default {
(deviceType) => {
state.activeIndex = mediaMap[deviceType].index
state.readonly = deviceType !== 'mdx'
}
},
{ immediate: true }
)
watchEffect(() => {