fix: bug#11278
This commit is contained in:
parent
f70b2c78ce
commit
d6523ea56b
|
@ -32,16 +32,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,& .right-content, & .anticon-bell {
|
h1,& .right-content, & .anticon-bell {
|
||||||
color: #fff;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
& .ant-pro-menu-item-title,& .anticon,& .ant-menu-item-active {
|
& .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-menu-item-selected {
|
||||||
& .ant-pro-menu-item-title,& .anticon {
|
& .ant-pro-menu-item-title,& .anticon {
|
||||||
color: #fff;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
box-shadow: 0 1px 0px 0px #E9E9E9;
|
box-shadow: 0 1px 0px 0px #E9E9E9;
|
||||||
|
|
||||||
h1,& .right-content, & .anticon-bell {
|
h1,& .right-content, & .anticon-bell {
|
||||||
color: #fff;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-menu-item-selected,& .ant-menu-item-active {
|
.ant-menu-item-selected,& .ant-menu-item-active {
|
||||||
|
|
|
@ -621,6 +621,10 @@ const handleClick = (dt: any) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const handleSubscribeValue = throttle((payload: any) => {
|
||||||
|
propertyValue.value.set(payload.pointId, payload);
|
||||||
|
})
|
||||||
|
|
||||||
const subscribeProperty = (value: any) => {
|
const subscribeProperty = (value: any) => {
|
||||||
const list = value.map((item: any) => item.id);
|
const list = value.map((item: any) => item.id);
|
||||||
const id = `collector-${props.data?.channelId || 'channel'}-${
|
const id = `collector-${props.data?.channelId || 'channel'}-${
|
||||||
|
@ -635,9 +639,7 @@ const subscribeProperty = (value: any) => {
|
||||||
?.pipe(map((res: any) => res.payload))
|
?.pipe(map((res: any) => res.payload))
|
||||||
.subscribe((payload: any) => {
|
.subscribe((payload: any) => {
|
||||||
//防止刷新过快
|
//防止刷新过快
|
||||||
throttle(() => {
|
handleSubscribeValue(payload)
|
||||||
propertyValue.value.set(payload.pointId, payload);
|
|
||||||
}, 1000);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue