wujingjing
2024-10-21 6dc8a04ea58dbcf253104504f1507997cc866ee6
src/components/chat/chatComponents/summaryCom/components/amisPage/AmisPage.vue
@@ -1,7 +1,7 @@
<template>
   <div>
      <span v-if="data?.title" class="text-base font-bold flex-center">{{ data?.title }}</span>
      <AMISRenderer :schema="data?.amis_json" :locals="data?.amis_data" @ready="amisReady"/>
      <AMISRenderer :schema="data?.amis_json" :context="data?.amis_data" @ready="amisReady"/>
   </div>
</template>
@@ -16,14 +16,13 @@
// import  市场综合状态 from './testData/市场综合状态.json'
// import  销售季度销量 from './testData/销售季度销量.json'
// import  经济运行 from './testData/经济运行.json'
// import testData from './testData.json'
import testData from './testData.json'
const props = defineProps({
   data: {
      type: Object as PropType<any>,
   },
});
const amisReady = (val) => {
   emitter.emit('amis.page.ready',val);
};