From 79e45536f581b4c5cd734af1dd87221d506b544b Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期三, 09 十月 2024 16:31:04 +0800 Subject: [PATCH] Merge branch 'test' of http://47.103.154.90:83/r/WI/Web.Admin.V1.0 into test --- src/components/amis/AMISRenderer.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/amis/AMISRenderer.vue b/src/components/amis/AMISRenderer.vue index f08953a..edec622 100644 --- a/src/components/amis/AMISRenderer.vue +++ b/src/components/amis/AMISRenderer.vue @@ -24,6 +24,10 @@ type: Object, default: () => ({}), }, + context:{ + type: Object, + default: () => ({}), + }, props: { type: Object, default: () => ({}), @@ -65,9 +69,7 @@ }); } -const context = reactive({ - siteName: 'AMIS DEMO', -}); + const current = router.currentRoute.value; const location = { @@ -86,7 +88,7 @@ data: { ...props.locals, }, - context: context, + context: props.context, ...props.props, }); }; @@ -127,7 +129,7 @@ data: { ...props.locals, }, - context: context, + context: props.context, location: location, // todo 涓嬪彂 location 瀵硅薄 -- Gitblit v1.9.3