diff options
Diffstat (limited to 'src/store/modules')
-rw-r--r-- | src/store/modules/HardwareStatus/PciStore.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/store/modules/HardwareStatus/PciStore.js b/src/store/modules/HardwareStatus/PciStore.js index 9f76e69d..fafd0923 100644 --- a/src/store/modules/HardwareStatus/PciStore.js +++ b/src/store/modules/HardwareStatus/PciStore.js @@ -37,8 +37,8 @@ const PciStore = { }); if (data.length > 1) { state.pci[index].Functions = functions; + state.pci[index].DeviceName = functions[0].DeviceName; } else { - console.log('state.inedex', state.pci[index]); state.pci[index].Functions = functions[0]; state.pci[index].DeviceName = functions[0].DeviceName; } @@ -60,9 +60,9 @@ const PciStore = { commit('setPciDevises', response); return response; }) - .then((res) => { + .then(async (res) => { // get functions data - api + await api .get(res.data.PCIeFunctions['@odata.id']) .then((res) => { const responses = res.data.Members.map((item) => { |