mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🐛 修复特定情况下分类改变错误
This commit is contained in:
@@ -58,9 +58,10 @@ watchEffect(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const { date } = route.params;
|
let { date } = route.params;
|
||||||
let errLabel;
|
let errLabel;
|
||||||
if (date) {
|
if (date) {
|
||||||
|
if (Array.isArray(date)) date = date[0];
|
||||||
renderItems.value = ArcBirDraw.filter((item) => item.birthday.toString() === date);
|
renderItems.value = ArcBirDraw.filter((item) => item.birthday.toString() === date);
|
||||||
errLabel = `没有找到生日为 ${date} 的角色数据`;
|
errLabel = `没有找到生日为 ${date} 的角色数据`;
|
||||||
canReset.value = true;
|
canReset.value = true;
|
||||||
|
|||||||
@@ -346,7 +346,11 @@ async function updatePostsCollect(
|
|||||||
if (postRes.length === 0) {
|
if (postRes.length === 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (force) {
|
const unclassifiedSql = "SELECT * FROM UFMap where postId = ?";
|
||||||
|
const unclassifiedRes: TGApp.Sqlite.UserCollection.UFMap[] = await db.select(unclassifiedSql, [
|
||||||
|
postIds[i],
|
||||||
|
]);
|
||||||
|
if (force && unclassifiedRes.length > 0) {
|
||||||
const deleteCheck = await deletePostCollect(postIds[i]);
|
const deleteCheck = await deletePostCollect(postIds[i]);
|
||||||
if (!deleteCheck) return false;
|
if (!deleteCheck) return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user