From 968b2587ae31cc7c83f4b55e4c067e28dc082b9d Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sat, 9 Aug 2025 00:18:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20setCapsuleConfig?= =?UTF-8?q?=20=E6=96=B9=E6=B3=95=E4=BB=A5=E6=9B=B4=E6=96=B0=E8=83=B6?= =?UTF-8?q?=E5=9B=8A=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/components/MicroApps/index.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/assets/js/components/MicroApps/index.vue b/resources/assets/js/components/MicroApps/index.vue index 38a4b8382..ab4b8e056 100644 --- a/resources/assets/js/components/MicroApps/index.vue +++ b/resources/assets/js/components/MicroApps/index.vue @@ -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++;