From 6f95ca0e2ce85ee1afb3fe774c282c69f0c18efd Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期四, 19 十二月 2024 14:50:58 +0800
Subject: [PATCH] guangming

---
 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