feat:
This commit is contained in:
parent
d5c3f04ce4
commit
51bc3e8a83
@ -49,7 +49,7 @@ const props = withDefaults(
|
|||||||
/**
|
/**
|
||||||
* 对话 记录id
|
* 对话 记录id
|
||||||
*/
|
*/
|
||||||
chartId?: string
|
chartId: string
|
||||||
/**
|
/**
|
||||||
* 下一条
|
* 下一条
|
||||||
*/
|
*/
|
||||||
@ -66,7 +66,7 @@ const props = withDefaults(
|
|||||||
{}
|
{}
|
||||||
)
|
)
|
||||||
|
|
||||||
defineEmits(['update:chartId'])
|
const emit = defineEmits(['update:chartId'])
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const {
|
const {
|
||||||
@ -107,6 +107,12 @@ watch(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
watch(visible, (bool) => {
|
||||||
|
if (!bool) {
|
||||||
|
emit('update:chartId', '')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
const open = () => {
|
const open = () => {
|
||||||
getChatRecord()
|
getChatRecord()
|
||||||
visible.value = true
|
visible.value = true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user