消息格式

This commit is contained in:
yuguo138
2023-03-03 16:58:12 +08:00
parent 13868a5719
commit aa29d2efdc

View File

@@ -107,4 +107,31 @@
</template>
<script setup>
// import { test, obj } from '../rtcGlobal';
import { ref, onMounted } from 'vue';
const list = ref([]);
onMounted(()=>{
list.value=[
{
id:'abc',
addTimeTick:12435515151,
msg:'这是一个消息',
userId:'ddd',
type:'text',
data:{}
},
{
id:'efg',
addTimeTick:12435515151,
msg:'这是一个消息',
userId:'ddd',
type:'image',
data:{
url:'aa.jpg',
width:200,
height:100
}
}
]
})
</script>