Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

重新加载无效 #62

Open
liudding opened this issue Dec 14, 2017 · 2 comments
Open

重新加载无效 #62

liudding opened this issue Dec 14, 2017 · 2 comments

Comments

@liudding
Copy link

liudding commented Dec 14, 2017

问题

当网络请求出错时,显示 neterror.html 页面。但点击“重新加载“不会触发页面重载。

原因

neterror.html

<p class="detail_neor_btn" onClick="location='ax_network_error'">重新加载</p>

请求的 ax_network_error 会被视作相对路径,被拼接成

file:///app_path/AXWebViewController.bundle/html.bundle/ax_network_error

webView: decidePolicyForNavigationAction:decisionHandler: 里的判断是

if ([navigationAction.request.URL.absoluteString isEqualToString:kAX404NotFoundURLKey] || [navigationAction.request.URL.absoluteString isEqualToString:kAXNetworkErrorURLKey])

条件无法通过,导致重载无限。

@devedbox
Copy link
Owner

v0.7.1已发布.

@ZhiHongTan
Copy link

现在在用0.7.2版本,但当网络请求出错时,显示 neterror.html 页面。但点击“重新加载“还是不会触发页面重载。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants