From 2d5c056b820202601cee32d31c802af5f8c5b376 Mon Sep 17 00:00:00 2001 From: Qwerdf <171264797@qq.com> Date: Fri, 24 Oct 2025 14:35:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShenQi/AppDelegate.h | 1 - ShenQi/AppDelegate.m | 2 +- ShenQi/MainOldViewController.m | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ShenQi/AppDelegate.h b/ShenQi/AppDelegate.h index 7bd7226..76ddcfd 100644 --- a/ShenQi/AppDelegate.h +++ b/ShenQi/AppDelegate.h @@ -6,7 +6,6 @@ // #import - #import "ConfigData.h" @interface AppDelegate : UIResponder diff --git a/ShenQi/AppDelegate.m b/ShenQi/AppDelegate.m index d43e60c..6652ae1 100644 --- a/ShenQi/AppDelegate.m +++ b/ShenQi/AppDelegate.m @@ -71,7 +71,7 @@ NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) { }]; [dataTask resume]; - + return YES; } diff --git a/ShenQi/MainOldViewController.m b/ShenQi/MainOldViewController.m index f602ff8..dd1233c 100644 --- a/ShenQi/MainOldViewController.m +++ b/ShenQi/MainOldViewController.m @@ -54,6 +54,7 @@ wkWebConfig.preferences.javaScriptCanOpenWindowsAutomatically = YES; _wkUController = [[WKUserContentController alloc] init]; + wkWebConfig.userContentController = _wkUController; UIStatusBarManager *statusBarManager = [UIApplication sharedApplication].windows.lastObject.windowScene.statusBarManager;