aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--viewer/.eslintrc.js2
-rw-r--r--viewer/vue.config.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/viewer/.eslintrc.js b/viewer/.eslintrc.js
index 76f59fd..095216b 100644
--- a/viewer/.eslintrc.js
+++ b/viewer/.eslintrc.js
@@ -17,7 +17,7 @@ module.exports = {
17 'vue/html-closing-bracket-spacing': 'warn', 17 'vue/html-closing-bracket-spacing': 'warn',
18 'vue/html-end-tags': 'error', 18 'vue/html-end-tags': 'error',
19 'vue/html-quotes': 'warn', 19 'vue/html-quotes': 'warn',
20 'vue/html-self-closing': 'warn', 20 'vue/html-self-closing': 'off',
21 'vue/no-multi-spaces': 'warn', 21 'vue/no-multi-spaces': 'warn',
22 'vue/no-spaces-around-equal-signs-in-attribute': 'warn', 22 'vue/no-spaces-around-equal-signs-in-attribute': 'warn',
23 'vue/no-template-shadow': 'error', 23 'vue/no-template-shadow': 'error',
diff --git a/viewer/vue.config.js b/viewer/vue.config.js
index 3bb56e5..f116619 100644
--- a/viewer/vue.config.js
+++ b/viewer/vue.config.js
@@ -15,7 +15,7 @@ module.exports = {
15 app.get("/gallery/*", (req, res) => { 15 app.get("/gallery/*", (req, res) => {
16 const fs = require("fs"); 16 const fs = require("fs");
17 const fileName = req.url.replace(/^\/gallery/, "../example"); 17 const fileName = req.url.replace(/^\/gallery/, "../example");
18 const file = fs.readFileSync(fileName); 18 const file = fs.readFileSync(decodeURIComponent(fileName));
19 res.end(file); 19 res.end(file);
20 }); 20 });
21 } 21 }