This commit is contained in:
2026-01-25 03:23:42 +08:00
parent bafd02452b
commit 9ff4057166
6 changed files with 132 additions and 369 deletions

View File

@@ -3,7 +3,7 @@ import { app } from '../../app.ts';
import { PageModel } from './models/index.ts';
import { AppListModel, AppModel } from '../../routes/app-manager/index.ts';
import { cachePage, getZip } from './module/cache-file.ts';
import { uniqBy } from 'lodash-es';
import { uniqBy } from 'es-toolkit';
import semver from 'semver';
app
@@ -50,7 +50,7 @@ app
// 上传文件
const res = await cachePage(page, { tokenUser, key, version: _version });
const appFiles = appList?.data?.files || [];
const newFiles = uniqBy([...appFiles, ...res], 'name');
const newFiles = uniqBy([...appFiles, ...res], (item) => item.name);
appList.data = {
...appList?.data,
files: newFiles,