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 @@ -507,11 +507,10 @@ export default {
507507
508508 if (arrayField .includes (' usagetype' )) {
509509 usageTypeIndex = this .fields .findIndex (item => item .name === ' usagetype' )
510+ this .fields [usageTypeIndex].loading = true
511+ promises .push (await this .fetchUsageTypes ())
510512 }
511513
512- this .fields [usageTypeIndex].loading = true
513- promises .push (await this .fetchUsageTypes ())
514-
515514 Promise .all (promises).then (response => {
516515 if (typeIndex > - 1 ) {
517516 const types = response .filter (item => item .type === ' type' )
You can’t perform that action at this time.
0 commit comments