fix:上传设备选择驱动时没有正确刷新

This commit is contained in:
Diego2098
2023-09-18 00:10:02 +08:00
parent 38495a3ebc
commit 6376bff476

View File

@@ -104,11 +104,10 @@ public partial class UploadDevicePage
{
if (pluginId <= 0)
return;
if (context.DevicePropertys == null || context.DevicePropertys?.Count == 0)
if (context.DevicePropertys == null || context.DevicePropertys?.Count == 0 || context.PluginId != pluginId)
{
try
{
context.PluginId = pluginId;
context.DevicePropertys = GetDriverProperties(pluginId, context.Id);
await PopupService.EnqueueSnackbarAsync("插件附加属性已更新", AlertTypes.Success);
@@ -118,6 +117,7 @@ public partial class UploadDevicePage
await PopupService.EnqueueSnackbarAsync(ex.Message, AlertTypes.Error);
}
}
context.PluginId = pluginId;
}
private async Task EditCallAsync(UploadDeviceEditInput input)