覆盖羽声
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface QXChirldViewController : QXBaseViewController
|
||||
|
||||
@property (nonatomic,assign)BOOL isRoot;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#import "QXChirldViewController.h"
|
||||
#import <WebKit/WebKit.h>
|
||||
#import "QXChirldModeViewController.h"
|
||||
|
||||
static void *WKWebBrowserContext = &WKWebBrowserContext;
|
||||
@interface QXChirldViewController ()<WKScriptMessageHandler>
|
||||
@@ -93,7 +94,10 @@ static void *WKWebBrowserContext = &WKWebBrowserContext;
|
||||
if (self.contentWebView.canGoBack) {
|
||||
[self.contentWebView goBack];
|
||||
}else{
|
||||
[self.navigationController popViewControllerAnimated:YES];
|
||||
QXChirldModeViewController *vc = [[QXChirldModeViewController alloc] init];
|
||||
vc.type = 2;
|
||||
vc.isRoot = YES;
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user