添加参数i为空的逻辑

This commit is contained in:
wolegca 2019-10-19 22:03:32 +08:00
parent db6940f715
commit c47209899d

View File

@ -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(),