From 5a5242664fbc96a7e0039d973eb9dc0d9815007b Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 1 Dec 2021 10:36:12 +0800 Subject: [PATCH] Update app.js --- static/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/app.js b/static/app.js index 845c12bdb..9acbad59a 100644 --- a/static/app.js +++ b/static/app.js @@ -15,6 +15,7 @@ console.log('baseRoot', appRoot) if (!/^https?:\/\//.test(url)) { url += url; } + url = url.replace(/\/.\//g, '/'); return fetch(url).then(res => { if (res.ok) { return {getContentData: binary => binary ? res.arrayBuffer() : res.text()};