@@ -239,6 +239,7 @@ const isSafety = ref();
239239const chartOption = ref (' network' );
240240let timer: NodeJS .Timer | null = null ;
241241let isInit = ref <boolean >(true );
242+ let isStatusInit = ref <boolean >(true );
242243let isActive = ref (true );
243244
244245const ioReadBytes = ref <Array <number >>([]);
@@ -355,7 +356,8 @@ const onLoadBaseInfo = async (isInit: boolean, range: string) => {
355356 baseInfo .value = res .data ;
356357 currentInfo .value = baseInfo .value .currentInfo ;
357358 await onLoadCurrentInfo ();
358- statuRef .value .acceptParams (currentInfo .value , baseInfo .value );
359+ isStatusInit .value = false ;
360+ statuRef .value .acceptParams (currentInfo .value , baseInfo .value , isStatusInit .value );
359361 appRef .value .acceptParams ();
360362 if (isInit ) {
361363 timer = setInterval (async () => {
@@ -421,7 +423,7 @@ const onLoadCurrentInfo = async () => {
421423 }
422424 loadData ();
423425 currentInfo .value = res .data ;
424- statuRef .value .acceptParams (currentInfo .value , baseInfo .value );
426+ statuRef .value .acceptParams (currentInfo .value , baseInfo .value , isStatusInit . value );
425427};
426428
427429function loadUpTime(uptime : number ) {
0 commit comments