From 8e3ddf6f3c37677cfeb8eff04bb866b1dfa3dd76 Mon Sep 17 00:00:00 2001 From: hzsunshx Date: Fri, 25 Jan 2019 09:25:53 +0800 Subject: [PATCH] fix #58 --- assets/js/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/index.js b/assets/js/index.js index 57c446a..63c86d5 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -348,8 +348,9 @@ function loadFileList(pathname) { var pathname = pathname || location.pathname; // console.log("load filelist:", pathname) if (getQueryString("raw") !== "false") { // not a file preview + let sep = pathname.indexOf("?") === -1 ? "?" : "&" $.ajax({ - url: pathname + "?json=true", + url: pathname + sep + "json=true", dataType: "json", cache: false, success: function (res) {