fix:this指向问题 feat:新增osbuild参数

This commit is contained in:
Tianpao
2025-10-06 14:55:43 +08:00
parent 77622cd150
commit 8f29a412cf
2 changed files with 4 additions and 2 deletions

View File

@@ -13,8 +13,8 @@ export class VersionListController {
this.hashList = ["md5", "sha1", "sha256"];
this.libmap = new Map();
this._refreshCache(); // 初始化缓存
setInterval(this._refreshCache, 1000 * 60 * 60 * 2); // 2小时刷新缓存
setInterval(this._refreshLib,1000*60*60*1) // 1小时刷新libmap
setInterval(this._refreshCache.bind(this), 1000 * 60 * 60 * 2); // 2小时刷新缓存傻逼this
setInterval(this._refreshLib.bind(this),1000*60*60*1) // 1小时刷新libmap
}
async getVersionList() {
@@ -49,6 +49,7 @@ ORDER BY "Date" DESC
id: row.version,
type: row.Type,
BuildType: "UWP",
OSBuild: row.OSbuild,
Arch: row.arch,
url,
time: row.Date,

View File

@@ -4,6 +4,7 @@ export interface IVersionPool {
Type: string;
Date: string;
arch: string;
OSbuild: string;
}
export interface IVersion {