Skip to content

Commit

Permalink
fix: 阿里云轻量问题
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Dec 6, 2023
1 parent 29d56c4 commit 68ec4bb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/api/alibaba/swas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class SwasModel extends AlibabaClient {
query = Object.assign({ Limit: 100 }, query);
return this.bus({
Action: 'ListInstances', RegionId: region,
Payload: { ...query, RegionId: region },
Query: { ...query, RegionId: region },
});
}

Expand Down
12 changes: 8 additions & 4 deletions src/cloud/alibaba/swas/instance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class SwasInstance extends Vue {
async getInstance() {
const res = await AcApi.swas.listInstances(this.region, {
InstanceIds: this.instance.InstanceId,
InstanceIds: JSON.stringify([this.instance.InstanceId]),
});
if (res.Instances) {
Object.assign(this.instance, res.Instances[0]);
Expand Down Expand Up @@ -112,19 +112,23 @@ export default class SwasInstance extends Vue {
</t-list-item>
<t-list-item>
<b>规格</b>
<span>CPU: {{ instance.ResourceSpec.Cpu }} 核 / 内存: {{ instance.ResourceSpec.Memory }} GB</span>
<span>vCPU: {{ instance.ResourceSpec.Cpu }} 核 / 内存: {{ instance.ResourceSpec.Memory }} GB</span>
</t-list-item>
<t-list-item>
<b>系统盘</b>
<span>{{ instance.ResourceSpec.DiskSize }} GB</span>
</t-list-item>
<t-list-item>
<b>私网 IP</b>
<span>{{ instance.InnerIpAddress }}</span>
</t-list-item>
<t-list-item>
<b>公网 IP</b>
<span>{{ instance.PublicIpAddress }}</span>
</t-list-item>
<t-list-item>
<b>镜像 Id</b>
<span>{{ instance.ImageId }}</span>
<b>镜像名称</b>
<span>{{ instance.Image.ImageName }}</span>
</t-list-item>
<t-list-item>
<b>创建时间</b>
Expand Down
2 changes: 1 addition & 1 deletion src/cloud/tencent/lighthouse/instance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default class LighthouseInstance extends Vue {
</t-list-item>
<t-list-item>
<b>规格</b>
<span>CPU: {{ instance.CPU }} 核 / 内存: {{ instance.Memory }} GB</span>
<span>vCPU: {{ instance.CPU }} 核 / 内存: {{ instance.Memory }} GB</span>
</t-list-item>
<t-list-item>
<b>系统盘</b>
Expand Down

0 comments on commit 68ec4bb

Please sign in to comment.