|
|
@ -505,6 +505,9 @@ const getHistoryList = async (params) => { |
|
|
|
console.log("categoryHistory", categoryHistory.value); |
|
|
|
} catch (e) { |
|
|
|
console.error("获取历史记录出错", e); |
|
|
|
// 确保在出错时historyRecords和categoryHistory仍然是数组 |
|
|
|
historyRecords.value = []; |
|
|
|
categoryHistory.value = []; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|