|
@ -478,6 +478,7 @@ const historyRecords = ref([]); |
|
|
const categoryHistory = ref([]); |
|
|
const categoryHistory = ref([]); |
|
|
let chatFirstFlag = true; |
|
|
let chatFirstFlag = true; |
|
|
let emotionTirstFlag = true; |
|
|
let emotionTirstFlag = true; |
|
|
|
|
|
let deepNineFirstFlag = true; |
|
|
// 添加缓存机制 |
|
|
// 添加缓存机制 |
|
|
let cachedCategoryHistory = null; |
|
|
let cachedCategoryHistory = null; |
|
|
let lastDataHash = null; |
|
|
let lastDataHash = null; |
|
@ -525,6 +526,13 @@ const getHistoryList = async (params) => { |
|
|
emotionTirstFlag = false; |
|
|
emotionTirstFlag = false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (deepNineFirstFlag && params.model == 3 && result.data.length != 0) { |
|
|
|
|
|
if (!isMobile.value) { |
|
|
|
|
|
chatStore.deepNineCall = true; |
|
|
|
|
|
} |
|
|
|
|
|
deepNineFirstFlag = false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 只在首次加载时根据chatStore状态设置折叠状态,避免搜索后自动弹出历史记录 |
|
|
// 只在首次加载时根据chatStore状态设置折叠状态,避免搜索后自动弹出历史记录 |
|
|
|
|
|
|
|
|
if (isMobile.value) { |
|
|
if (isMobile.value) { |
|
|