From 3fca783dd8f42ae347e4cde9587a4b2d9c2d1bc5 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Wed, 23 Jul 2025 12:00:49 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/components/MicroApps/index.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/components/MicroApps/index.vue b/resources/assets/js/components/MicroApps/index.vue index eb6decfec..5029ac22a 100644 --- a/resources/assets/js/components/MicroApps/index.vue +++ b/resources/assets/js/components/MicroApps/index.vue @@ -304,6 +304,9 @@ export default { } return 1000; }, + isFullScreen: () => { + return window.innerWidth < 768 || this.windowType === 'popout' + }, extraCallA: (...args) => { if (args.length > 0 && typeof args[0] === 'string') { const methodName = args[0]; @@ -314,8 +317,13 @@ export default { } return null; }, - isFullScreen: () => { - return window.innerWidth < 768 || this.windowType === 'popout' + extraCallStore: async (...args) => { + if (args.length > 0 && typeof args[0] === 'string') { + const actionName = args[0]; + const payload = args.slice(1); + await this.$store.dispatch(actionName, ...payload) + } + return null; }, }, }