feat(升级中心): 实现备用更新方案并优化版本检查逻辑
This commit is contained in:
14
api/modules/sys.ts
Normal file
14
api/modules/sys.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { mainClient, skeletonClient } from '@/api/clients'
|
||||
import type { IApiResponse } from '@/api/types'
|
||||
|
||||
/**
|
||||
* 请求更新包
|
||||
*/
|
||||
export async function requestUpdatePackage(type: string, version: string) {
|
||||
const res = await skeletonClient.request<IApiResponse>({
|
||||
url: 'common/apkConfig/getUpdateUrl',
|
||||
method: 'POST',
|
||||
data: { type, version }
|
||||
})
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user