gerson
2024-10-28 70d33d14b1a5265473f3b5272891f16925825b72
src/components/amis/AMISRenderer.vue
@@ -26,6 +26,10 @@
      type: Object,
      default: () => ({}),
   },
   context:{
      type: Object,
      default: () => ({}),
   },
   props: {
      type: Object,
      default: () => ({}),
@@ -67,9 +71,7 @@
   });
}
const context = reactive({
   siteName: 'AMIS DEMO',
});
const current = router.currentRoute.value;
const location = {
@@ -86,9 +88,9 @@
const updateProps = () => {
   amisInstance.value?.updateProps({
      data: {
         ...props.locals,
         // ...props.locals,
      },
      context: context,
      context: props.context,
      ...props.props,
   });
};
@@ -127,9 +129,9 @@
      props.schema,
      {
         data: {
            ...props.locals,
            // ...props.locals,
         },
         context: context,
         context: props.context,
         location: location,
         // todo 下发 location 对象