fix: add detection version files

This commit is contained in:
2025-04-03 21:22:46 +08:00
parent 9add82dc7e
commit 7ca06de217
4 changed files with 36 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ type AppVersionStore = {
*/
deleteData: (id: string, deleteFile?: boolean) => Promise<void>;
publishVersion: (data: { id?: string; appKey?: string; version?: string }, opts?: { showToast?: boolean }) => Promise<any>;
detectVersionList: (data: { appKey: string; version: string }) => Promise<any>;
};
export const useAppVersionStore = create<AppVersionStore>((set, get) => {
return {
@@ -134,5 +135,13 @@ export const useAppVersionStore = create<AppVersionStore>((set, get) => {
}
return res;
},
detectVersionList: async (data) => {
const res = await query.post({
path: 'app',
key: 'detectVersionList',
data,
});
return res;
},
};
});