mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 12:02:51 +00:00
feat: 添加 setCapsuleConfig 方法以更新胶囊配置
This commit is contained in:
parent
15f471a032
commit
968b2587ae
@ -308,6 +308,17 @@ export default {
|
|||||||
}, reject)
|
}, reject)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
setCapsuleConfig: (config) => {
|
||||||
|
if (!$A.isJson(config)) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.$store.commit('microApps/update', {
|
||||||
|
name,
|
||||||
|
data: {
|
||||||
|
capsule: config,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
nextZIndex: () => {
|
nextZIndex: () => {
|
||||||
if (typeof window.modalTransferIndex === 'number') {
|
if (typeof window.modalTransferIndex === 'number') {
|
||||||
return window.modalTransferIndex++;
|
return window.modalTransferIndex++;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user