feat: 字典实时同步和首页添加在线用户统计

This commit is contained in:
Ray.Hao
2025-04-22 22:15:15 +08:00
parent cad57b3dc0
commit fdf66164d8
14 changed files with 1275 additions and 70 deletions

View File

@@ -56,4 +56,15 @@ const updateLabelAndTag = async () => {
watch([() => props.code, () => props.modelValue], updateLabelAndTag);
onMounted(updateLabelAndTag);
// 监听WebSocket字典更新事件强制刷新标签
watch(
() => dictStore.getDictItems(props.code || ""),
async () => {
if (props.code) {
await updateLabelAndTag();
}
},
{ deep: true }
);
</script>