feat: 版本管理文件上传修改为 oss 真传

This commit is contained in:
2025-02-25 17:26:11 +08:00
parent 4eb7744111
commit 98403f2acc
7 changed files with 478 additions and 12 deletions

View File

@@ -29,10 +29,27 @@ const VersionApi = {
method: "delete",
});
},
//获取上传临时凭证
getCredentials() {
return request<any, ossConfig>({
url: `${baseURL}/getCredentials`,
method: "get",
});
},
};
export default VersionApi;
export interface ossConfig {
accessKeyId: string;
accessKeySecret: string;
expiration: string;
securityToken: number;
}
export interface versionForm {
/**
* 版本 id