mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-06 08:32:51 +08:00
🚸 完善奇偶处理
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
},
|
||||
{
|
||||
"id": 10000118,
|
||||
"contentId": -1,
|
||||
"contentId": 506961,
|
||||
"name": "奇偶·女性",
|
||||
"title": "",
|
||||
"area": "主角",
|
||||
@@ -61,7 +61,7 @@
|
||||
},
|
||||
{
|
||||
"id": 10000117,
|
||||
"contentId": -1,
|
||||
"contentId": 506960,
|
||||
"name": "奇偶·男性",
|
||||
"title": "",
|
||||
"area": "主角",
|
||||
|
||||
@@ -97,7 +97,13 @@ function handleSelect(val: SelectedCValue): void {
|
||||
}
|
||||
|
||||
async function switchC(item: TGApp.App.Character.WikiBriefInfo): Promise<void> {
|
||||
if (item.id === 10000005 || item.id === 10000007) {
|
||||
const outerIdList: ReadonlyArray<number> = [
|
||||
10000005, // 空
|
||||
10000007, // 荧
|
||||
10000117, // 奇偶·男性
|
||||
10000118, // 奇偶·女性
|
||||
];
|
||||
if (outerIdList.includes(item.id)) {
|
||||
await toOuter(item);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user