From 6d96bd8578f2d921ed2535e2af6fffb8d1c03ef0 Mon Sep 17 00:00:00 2001 From: wolegca <2738076308@qq.com> Date: Sat, 19 Oct 2019 22:13:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=8F=82=E6=95=B0=E6=A3=80?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/view.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/view.js b/js/view.js index 0f58aff..bd965c8 100644 --- a/js/view.js +++ b/js/view.js @@ -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;