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