Skip to content

Commit 968b258

Browse files
committed
feat: 添加 setCapsuleConfig 方法以更新胶囊配置
1 parent 15f471a commit 968b258

File tree

1 file changed

+11
-0
lines changed
  • resources/assets/js/components/MicroApps

1 file changed

+11
-0
lines changed

resources/assets/js/components/MicroApps/index.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,17 @@ export default {
308308
}, reject)
309309
})
310310
},
311+
setCapsuleConfig: (config) => {
312+
if (!$A.isJson(config)) {
313+
return
314+
}
315+
this.$store.commit('microApps/update', {
316+
name,
317+
data: {
318+
capsule: config,
319+
}
320+
})
321+
},
311322
nextZIndex: () => {
312323
if (typeof window.modalTransferIndex === 'number') {
313324
return window.modalTransferIndex++;

0 commit comments

Comments
 (0)