改进参数检查
This commit is contained in:
parent
c47209899d
commit
6d96bd8578
@ -1,7 +1,7 @@
|
||||
(function () {
|
||||
var index = getQueryString('i');
|
||||
if (index == '') {
|
||||
message.alert('发生错误', '缺少参数,请检查URL是否正确', function () {
|
||||
var index = window.parseInt(getQueryString('i'));
|
||||
if (window.isNaN(index)) {
|
||||
message.alert('发生错误', '缺少参数或参数类型不正确,请检查URL是否正确', function () {
|
||||
window.location.replace('/');
|
||||
});
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user