We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1eae0e commit fb044eaCopy full SHA for fb044ea
1 file changed
js/main.js
@@ -1662,6 +1662,17 @@
1662
alert('请先输入请求内容!')
1663
return
1664
}
1665
+ if (StringUtil.isEmpty(App.host, true)) {
1666
+ if (StringUtil.get(vUrl.value).startsWith('http://') != true && StringUtil.get(vUrl.value).startsWith('https://') != true) {
1667
+ alert('URL 缺少 http:// 或 https:// 前缀,可能不完整或不合法,\n将会自动在前面加同域的 Host,可能访问出错!')
1668
+ }
1669
1670
+ else {
1671
+ if (StringUtil.get(vUrl.value).indexOf('://') >= 0) {
1672
+ alert('URL Host 已经隐藏(固定) 为 \n' + App.host + ' \n将会自动在前面补全,导致 URL 不合法访问出错!\n如果要改 Host,右上角设置 > 显示(编辑)URL Host')
1673
1674
1675
+
1676
this.onHandle(vInput.value)
1677
1678
clearTimeout(handler);
0 commit comments