实现了Mqtt服务器详情页的简单功能

This commit is contained in:
2025-07-05 22:57:54 +08:00
parent 1f57a94c03
commit de21b0073c
12 changed files with 319 additions and 11 deletions

View File

@@ -55,7 +55,7 @@ public class MqttRepository
stopwatch.Start();
using (var _db = DbContext.GetInstance())
{
var result = await _db.Queryable<DbMqtt>()
var result = await _db.Queryable<DbMqtt>().Includes(m=>m.VariableDatas)
.ToListAsync();
stopwatch.Stop();
Logger.Info($"获取所有Mqtt配置耗时{stopwatch.ElapsedMilliseconds}ms");