Skip to content

Commit

Permalink
分离检查数据库中表是否存在,在每个函数运行前检查表是否存在
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoyaoo committed Aug 13, 2024
1 parent cabbfd9 commit e1164bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/chat/ChatRecordsMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ const init = async () => {
my_wxid.value = await apiMyWxid();
msg_count.value = await apiMsgCountSolo(props.wxid);
if (msg_count.value <= 0) {
return;
}
// 切换最后一页
console.log('msg_count.value', msg_count.value, limit.value)
start.value = Math.floor(msg_count.value / limit.value) * limit.value || 0
Expand Down

0 comments on commit e1164bb

Please sign in to comment.