fix
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<div class="history-list" v-show="!isCollapse && showHistory">
|
||||
<div v-for="item in historyList" :key="item.name" class="history-item">
|
||||
<div v-if="item.title" class="title">{{ item.name }}</div>
|
||||
<div v-else class="box">
|
||||
<div v-else class="box" @click="onClickHistoryItem(item)">
|
||||
<span>{{ item.name }}</span>
|
||||
<el-popover placement="right" trigger="click">
|
||||
<template #reference>
|
||||
@@ -62,9 +62,11 @@
|
||||
name: $t('Home.today')
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
name: 'Conversation Item 1'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: 'Conversation Item 2'
|
||||
},
|
||||
{
|
||||
@@ -72,6 +74,7 @@
|
||||
name: $t('Home.yesterday')
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: 'Conversation Item 3'
|
||||
},
|
||||
{
|
||||
@@ -79,9 +82,11 @@
|
||||
name: $t('Home.earlierChat')
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
name: 'Conversation Item 4'
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
name: 'Conversation Item 5'
|
||||
}
|
||||
])
|
||||
@@ -91,6 +96,10 @@
|
||||
const onHistory = () => {
|
||||
showHistory.value = !showHistory.value
|
||||
}
|
||||
const onClickHistoryItem = (item: any) => {
|
||||
console.log(item)
|
||||
router.push({ name: 'test', params: { id: item.id } })
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
||||
Reference in New Issue
Block a user