mirror of
https://github.com/certd/certd.git
synced 2026-06-27 22:17:35 +08:00
perf: 所有授权增加测试按钮
This commit is contained in:
@@ -29,6 +29,25 @@ export class HuaweiAccess extends BaseAccess {
|
||||
accessKeySecret = '';
|
||||
|
||||
|
||||
|
||||
@AccessInput({
|
||||
title: "测试",
|
||||
component: {
|
||||
name: "api-test",
|
||||
action: "TestRequest"
|
||||
},
|
||||
helper: "点击测试接口是否正常"
|
||||
})
|
||||
testRequest = true;
|
||||
|
||||
accessToken: { expiresAt: number, token: string }
|
||||
|
||||
async onTestRequest() {
|
||||
await this.getProjectList();
|
||||
return "ok"
|
||||
}
|
||||
|
||||
|
||||
async getProjectList() {
|
||||
const endpoint = "https://iam.cn-north-4.myhuaweicloud.com";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user