From c47209899d60fb1f17f2ea51a50259f6b67e81f9 Mon Sep 17 00:00:00 2001 From: wolegca <2738076308@qq.com> Date: Sat, 19 Oct 2019 22:03:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=82=E6=95=B0i=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/view.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/view.js b/js/view.js index 80bcd07..0f58aff 100644 --- a/js/view.js +++ b/js/view.js @@ -1,5 +1,11 @@ (function () { var index = getQueryString('i'); + if (index == '') { + message.alert('发生错误', '缺少参数,请检查URL是否正确', function () { + window.location.replace('/'); + }); + return; + } $.ajax({ type: "GET", url: "content.json?timestamp=" + (new Date()).valueOf(),