fix: add detection version files
This commit is contained in:
@@ -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;
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user