mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
feat: 添加 setCapsuleConfig 方法以更新胶囊配置
This commit is contained in:
parent
15f471a032
commit
968b2587ae
@ -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++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user