1 parent
948384222e
commit
35870d4bba
2 files changed
+2
-2
No files matched your search
@@ -11,7 +11,7 @@ export const Globals = {
|
||||
accessedEnvVars: {},
|
||||
|
||||
// 静态常量
|
||||
VERSION: '1.7.6',
|
||||
VERSION: '1.7.7',
|
||||
MAX_LOGS: 500, // 日志存储,最多保存 500 行
|
||||
MAX_ANIMES: 100,
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ export class Anime {
|
||||
throw new TypeError("fromJson 参数必须是对象");
|
||||
}
|
||||
|
||||
const links = json.links.map(link => Link.fromJson(link));
|
||||
const links = (json.links || []).map(link => Link.fromJson(link));
|
||||
return new Anime({ ...json, links });
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user