From 770e30a695c1c1a28bc4e8452742e18cf85c23dc Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 1 Dec 2021 10:33:43 +0800 Subject: [PATCH] Update app.js --- static/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/app.js b/static/app.js index b1c74497e..040cb4ac1 100644 --- a/static/app.js +++ b/static/app.js @@ -11,8 +11,10 @@ console.log('baseRoot', appRoot) vue: Vue, less: less }, getFile(url) { - document.get console.log('load.file', url) + if (!url.test(/^https?:\/\//)) { + url += url; + } return fetch(url).then(res => { if (res.ok) { return {getContentData: binary => binary ? res.arrayBuffer() : res.text()};