mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🐛 修复返回数据为 [true]
This commit is contained in:
@@ -21,7 +21,7 @@ rules:
|
||||
vue/valid-template-root: off
|
||||
overrides:
|
||||
- files: ["*.ts"]
|
||||
extends: standard-with-typescript
|
||||
extends: love
|
||||
# 将此处规则 copy 到下面的 .vue 文件的 rules 中
|
||||
rules: &typescript-rules
|
||||
import/order:
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"version": "0.4.5",
|
||||
"description": "Game Tool for Genshin Impact player",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@8.15.6",
|
||||
"packageManager": "pnpm@9.0.1",
|
||||
"scripts": {
|
||||
"build": "tauri build",
|
||||
"debug": "tauri build --debug",
|
||||
@@ -98,8 +98,8 @@
|
||||
"@vitejs/plugin-vue": "^5.0.4",
|
||||
"concurrently": "^8.2.2",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-love": "^47.0.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-config-standard-with-typescript": "^43.0.1",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-jsonc": "^2.15.0",
|
||||
"eslint-plugin-n": "^16.6.2",
|
||||
|
||||
6951
pnpm-lock.yaml
generated
6951
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
719
src-tauri/Cargo.lock
generated
719
src-tauri/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -13,10 +13,10 @@ edition = "2021"
|
||||
tauri-build = { version = "1.4", features = [] }
|
||||
|
||||
[dependencies]
|
||||
chrono = "0.4.37"
|
||||
chrono = "0.4.38"
|
||||
log = "0.4.21"
|
||||
serde = { version = "1.0.197", features = ["derive"] }
|
||||
serde_json = "1.0.115"
|
||||
serde_json = "1.0.116"
|
||||
tauri = { version = "1.6.1", features = [ "shell-execute", "shell-open", "window-set-always-on-top", "window-set-fullscreen", "dialog-message", "process-exit", "fs-read-dir", "window-hide", "os-all", "clipboard-all", "dialog-open", "dialog-save", "fs-create-dir", "fs-remove-dir", "fs-write-file", "fs-remove-file", "fs-read-file", "path-all", "fs-exists", "window-close", "window-set-title", "window-unminimize", "window-show", "window-set-focus", "http-request"] }
|
||||
tauri-utils = "1.5.3"
|
||||
url = "2.5.0"
|
||||
|
||||
@@ -8,7 +8,7 @@ import { AppCharacterData, ArcBirCalendar, ArcBirRole } from "../../../data";
|
||||
|
||||
/**
|
||||
* @description 判断今天是不是角色生日
|
||||
* @since Beta v0.4.5
|
||||
* @since Beta v0.4.6
|
||||
* @return {TGApp.Archive.Birth.CalendarItem[]} 角色生日
|
||||
*/
|
||||
function isAvatarBirth(): TGApp.Archive.Birth.CalendarItem[] {
|
||||
@@ -17,18 +17,22 @@ function isAvatarBirth(): TGApp.Archive.Birth.CalendarItem[] {
|
||||
const day = date.getDate();
|
||||
const days = ArcBirCalendar[month];
|
||||
const find = days.filter((i) => i.role_birthday === `${month}/${day}`);
|
||||
if (find.length > 0) return find.map((i) => (i.is_subscribe = true));
|
||||
if (find.length > 0) {
|
||||
return find.map((i) => {
|
||||
i.is_subscribe = true;
|
||||
return i;
|
||||
});
|
||||
}
|
||||
const find2 = AppCharacterData.filter((i) => i.birthday.toString() === [month, day].toString());
|
||||
return find2.map(
|
||||
(i) =>
|
||||
<TGApp.Archive.Birth.CalendarItem>{
|
||||
return find2.map((i) => {
|
||||
return <TGApp.Archive.Birth.CalendarItem>{
|
||||
role_id: i.id,
|
||||
name: i.name,
|
||||
role_birthday: `${month}/${day}`,
|
||||
head_icon: `/WIKI/character/${i.id}.webp`,
|
||||
is_subscribe: false,
|
||||
},
|
||||
);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user