feat: 添加 setCapsuleConfig 方法以更新胶囊配置

This commit is contained in:
kuaifan 2025-08-09 00:18:57 +08:00
parent 15f471a032
commit 968b2587ae

View File

@ -308,6 +308,17 @@ export default {
}, reject)
})
},
setCapsuleConfig: (config) => {
if (!$A.isJson(config)) {
return
}
this.$store.commit('microApps/update', {
name,
data: {
capsule: config,
}
})
},
nextZIndex: () => {
if (typeof window.modalTransferIndex === 'number') {
return window.modalTransferIndex++;