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) {