This commit is contained in:
wangdan-fit2cloud 2023-12-13 15:13:01 +08:00
parent d5c3f04ce4
commit 51bc3e8a83

View File

@ -49,7 +49,7 @@ const props = withDefaults(
/**
* 对话 记录id
*/
chartId?: string
chartId: string
/**
* 下一条
*/
@ -66,7 +66,7 @@ const props = withDefaults(
{}
)
defineEmits(['update:chartId'])
const emit = defineEmits(['update:chartId'])
const route = useRoute()
const {
@ -107,6 +107,12 @@ watch(
}
)
watch(visible, (bool) => {
if (!bool) {
emit('update:chartId', '')
}
})
const open = () => {
getChatRecord()
visible.value = true