update
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user