From 2b52247bbf6db8e91640c519e3ef7794cbcc4f07 Mon Sep 17 00:00:00 2001 From: qing <1776177662@qq.com> Date: Thu, 23 Jul 2026 08:46:52 +0800 Subject: [PATCH] refix --- static/public/js/view.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/public/js/view.js b/static/public/js/view.js index ec82463..e70712d 100644 --- a/static/public/js/view.js +++ b/static/public/js/view.js @@ -54,6 +54,7 @@ function esc(str) { function navigate(path, type) { if (type === "dir") window.location.href = "/" + path; else if (type === "video" || type === "audio") window.location.href = "/video/" + path; + else if (/\.html?$/i.test(path)) window.open("/" + path, "_blank"); else window.location.href = "/" + path; } function playMedia(path) { window.location.href = "/video/" + path; }