Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
3e079c45
Commit
3e079c45
authored
Jun 13, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 重新加载webView
parent
f4a30e5b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
YHHomeWebViewController.swift
.../Classes/Modules/Home(首页)/C/YHHomeWebViewController.swift
+4
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomeWebViewController.swift
View file @
3e079c45
...
@@ -279,7 +279,10 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
...
@@ -279,7 +279,10 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
if
YHNetworkStatusManager
.
shared
.
isNetWorkOK
{
if
YHNetworkStatusManager
.
shared
.
isNetWorkOK
{
if
needReload
{
if
needReload
{
self
.
webview
.
reload
()
self
.
webview
.
stopLoading
()
let
targetUrl
=
NSURL
(
string
:
self
.
url
)
let
request
=
NSURLRequest
(
url
:
targetUrl
!
as
URL
)
self
.
webview
.
load
(
request
as
URLRequest
)
self
.
getData
()
self
.
getData
()
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment