From b95cf940af8e01e4eca30b2599b029c2f645bd1e Mon Sep 17 00:00:00 2001 From: charles <981744753@qq.com> Date: 星期一, 29 四月 2024 10:44:26 +0800 Subject: [PATCH] feat:创建新分支 --- src/views/dashboard/components/DashboardTitle.vue | 43 +++++++++++++++++++++++-------------------- 1 files changed, 23 insertions(+), 20 deletions(-) diff --git a/src/views/dashboard/components/DashboardTitle.vue b/src/views/dashboard/components/DashboardTitle.vue index 4f37f2b..50d533e 100644 --- a/src/views/dashboard/components/DashboardTitle.vue +++ b/src/views/dashboard/components/DashboardTitle.vue @@ -61,7 +61,7 @@ import IconCloudOff from '~icons/material-symbols-light/cloud-off-outline' import IconSlider from '~icons/bx/slider' import { useRequest } from 'vue-hooks-plus' -import { apiGetProblemList } from '@/api' +// import { apiGetProblemList } from '@/api' import { PROBLEMS_POLLING_DURATION } from '@/common/constants' import { Setting } from '@element-plus/icons-vue' import DeliverParamsConfigModal from '@/views/dashboard/components/DeliverParamsConfigModal.vue' @@ -101,7 +101,8 @@ // 闂璇婃柇鍒楄〃 const problemList = computed(() => { - return problemsRes?.value?.data ?? [] + // return problemsRes?.value?.data ?? [] + return [] }) // 闂璇婃柇icon鐘舵��, 闂鍒楄〃涓湁涓�鏉″紓甯稿嵆涓虹孩鐏� 鍚﹀垯鏄豢鐏� true缁跨伅 const problemsIconStatus = computed(() => { @@ -109,7 +110,8 @@ // 榛樿缁跨伅, 鎷垮埌涓�娆℃暟鎹悗鎵嶄互鎺ュ彛涓哄噯 return true } - return !problemList.value.some((ele) => !ele.CheckResult) + // return !problemList.value.some((ele) => !ele.CheckResult) + return false }) // 浜戠杩炴帴icon鐘舵��, 闂鍒楄〃涓湁涓�鏉′唬琛ㄤ簯绔摼鎺ョ殑, 寮傚父鍗充负绾㈣壊浜慽con 鍚﹀垯鏄豢鑹� true缁夸簯 const cloudConnectionIconStatus = computed(() => { @@ -118,8 +120,9 @@ return true } // 娌℃暟鎹氨褰撴槸閾炬帴姝e父 - const cloudConnection = problemList.value.find((ele) => ele.ItemCode === 'cloud') - return cloudConnection ? cloudConnection?.CheckResult : true + // const cloudConnection = problemList.value.find((ele) => ele.ItemCode === 'cloud') + // return cloudConnection ? cloudConnection?.CheckResult : true + return false }) // 閰嶇疆涓嬪彂鍙傛暟寮圭獥 @@ -133,19 +136,19 @@ /** * 杞闂璇婃柇 */ -const { - data: problemsRes, - run: startProblemsPolling, - cancel: cancelProblemsPolling -} = useRequest(apiGetProblemList, { - manual: true, - pollingInterval: PROBLEMS_POLLING_DURATION, - pollingWhenHidden: false -}) -startProblemsPolling() -onUnmounted(() => { - cancelProblemsPolling() -}) +// const { +// data: problemsRes, +// run: startProblemsPolling, +// cancel: cancelProblemsPolling +// } = useRequest(apiGetProblemList, { +// manual: true, +// pollingInterval: PROBLEMS_POLLING_DURATION, +// pollingWhenHidden: false +// }) +// startProblemsPolling() +// onUnmounted(() => { +// cancelProblemsPolling() +// }) const taskStore = useTasksStore() @@ -193,7 +196,7 @@ float: left; } .text-icon { - font-size: 32px; + font-size: 40px; margin-left: 4px; cursor: pointer; } @@ -214,7 +217,7 @@ margin-top: 7px; } .cloud-connection-status { - margin-top: 5px; + // margin-top: 5px; } } .connection-info { -- Gitblit v1.8.0