From d8dab763725a2081926454bdba486653ee97f25c Mon Sep 17 00:00:00 2001 From: "gao.fei" Date: Mon, 23 Aug 2021 13:48:57 +0800 Subject: [PATCH] =?UTF-8?q?flavor=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/calculate-storage/instance/Instances.vue | 13 ------------- .../instance/create-instance/StepFlavor.vue | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/views/calculate-storage/instance/Instances.vue b/src/views/calculate-storage/instance/Instances.vue index 911c5b9..9827231 100644 --- a/src/views/calculate-storage/instance/Instances.vue +++ b/src/views/calculate-storage/instance/Instances.vue @@ -474,7 +474,6 @@ export default { projectId: '', instanceId: '' }, - OSSupportsHotPlug: [], modifyPasswordDialog: { visible: false, instanceId: '' @@ -691,7 +690,6 @@ export default { let $this = this; let roleType = String(Vue.roleType); $this.$nextTick(async () => { - await $this.loadInspurConfigs(); if (roleType === '0') { $this.loadFilteredUsers(''); $this.loadHostList(); @@ -1630,17 +1628,6 @@ export default { const $this = this; $this.loadData($this.currentPage, true); }, - async loadInspurConfigs() { - const $this = this - const res = await $this.$ajax({ - type: 'get', - url: `api/nova/v2.1/inspur-configs` - }); - $this.OSSupportsHotPlug = []; - for (let key in res) { - $this.OSSupportsHotPlug.push(key); - } - }, async loadHostList() { const $this = this; const res = await $this.$ajax({ diff --git a/src/views/calculate-storage/instance/create-instance/StepFlavor.vue b/src/views/calculate-storage/instance/create-instance/StepFlavor.vue index 028f0f1..3f2c4ed 100644 --- a/src/views/calculate-storage/instance/create-instance/StepFlavor.vue +++ b/src/views/calculate-storage/instance/create-instance/StepFlavor.vue @@ -114,7 +114,7 @@ export default { async loadFlavors() { const $this = this; const res = await $this.$ajax({ - url: `api/nova/v2.1/flavors-inspur/detail?project_id=${$this.incomingData.projectId}`, + url: `api/nova/v2.1/flavors/detail?project_id=${$this.incomingData.projectId}`, method: 'get' }); let flavors = res.flavors;