File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 145145import DedicateData from ' ./DedicateData'
146146import HostInfo from ' @/views/infra/HostInfo'
147147import VmwareData from ' ./VmwareData'
148- import { parseDayJsObject } from ' @/utils/date'
149148
150149export default {
151150 name: ' DetailsTab' ,
@@ -329,7 +328,6 @@ export default {
329328 }
330329 },
331330 methods: {
332- parseDate: parseDayJsObject,
333331 decodeUserData (userdata ) {
334332 const decodedData = Buffer .from (userdata, ' base64' )
335333 return decodedData .toString (' utf-8' )
Original file line number Diff line number Diff line change @@ -501,11 +501,10 @@ export default {
501501
502502 if (arrayField .includes (' usagetype' )) {
503503 usageTypeIndex = this .fields .findIndex (item => item .name === ' usagetype' )
504+ this .fields [usageTypeIndex].loading = true
505+ promises .push (await this .fetchUsageTypes ())
504506 }
505507
506- this .fields [usageTypeIndex].loading = true
507- promises .push (await this .fetchUsageTypes ())
508-
509508 Promise .all (promises).then (response => {
510509 if (typeIndex > - 1 ) {
511510 const types = response .filter (item => item .type === ' type' )
You can’t perform that action at this time.
0 commit comments