From 4e72f9ccf97aa7eff908332eef483d51ec3116ba Mon Sep 17 00:00:00 2001 From: Aigio Liu Date: Tue, 30 Apr 2024 13:54:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20ClickAdvertisement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Mvvm/Advertisement/AdvertiseService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/BD.WTTS.Client/Services/Mvvm/Advertisement/AdvertiseService.cs b/src/BD.WTTS.Client/Services/Mvvm/Advertisement/AdvertiseService.cs index b8dd57706..0a6d13421 100644 --- a/src/BD.WTTS.Client/Services/Mvvm/Advertisement/AdvertiseService.cs +++ b/src/BD.WTTS.Client/Services/Mvvm/Advertisement/AdvertiseService.cs @@ -95,11 +95,12 @@ public sealed class AdvertiseService : ReactiveObject } } - static void ClickAdvertisement(AdvertisementDTO? dto) + static async void ClickAdvertisement(AdvertisementDTO? dto) { if (dto != null) { - IApplication.Instance.OpenBrowserCommandCore(dto.Url); + //IApplication.Instance.OpenBrowserCommandCore(dto.Url); + await Browser2.OpenAsync(dto.Url); } }