diff --git a/src/style.less b/src/style.less index ff79afda..281cf47c 100644 --- a/src/style.less +++ b/src/style.less @@ -32,16 +32,16 @@ } h1,& .right-content, & .anticon-bell { - color: #fff; + color: #fff !important; } & .ant-pro-menu-item-title,& .anticon,& .ant-menu-item-active { - color: rgba(#fff, 0.55); + color: rgba(#fff, 0.55) !important; } .ant-menu-item-selected { & .ant-pro-menu-item-title,& .anticon { - color: #fff; + color: #fff !important; } } @@ -60,7 +60,7 @@ box-shadow: 0 1px 0px 0px #E9E9E9; h1,& .right-content, & .anticon-bell { - color: #fff; + color: #fff !important; } .ant-menu-item-selected,& .ant-menu-item-active { diff --git a/src/views/DataCollect/Collector/Point/index.vue b/src/views/DataCollect/Collector/Point/index.vue index 4a4a55ce..c2fee56d 100644 --- a/src/views/DataCollect/Collector/Point/index.vue +++ b/src/views/DataCollect/Collector/Point/index.vue @@ -621,6 +621,10 @@ const handleClick = (dt: any) => { } }; +const handleSubscribeValue = throttle((payload: any) => { + propertyValue.value.set(payload.pointId, payload); +}) + const subscribeProperty = (value: any) => { const list = value.map((item: any) => item.id); const id = `collector-${props.data?.channelId || 'channel'}-${ @@ -635,9 +639,7 @@ const subscribeProperty = (value: any) => { ?.pipe(map((res: any) => res.payload)) .subscribe((payload: any) => { //防止刷新过快 - throttle(() => { - propertyValue.value.set(payload.pointId, payload); - }, 1000); + handleSubscribeValue(payload) }); };