From 39c288fde0bef978e49f414bb9c6e98390538b90 Mon Sep 17 00:00:00 2001 From: Liang Yi Date: Sun, 19 Apr 2020 00:49:11 +0800 Subject: [PATCH] Support reverse proxy close #23 --- src/Api.ts | 2 +- src/components/MainToolbar.vue | 2 +- vue.config.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Api.ts b/src/Api.ts index cf7fa30..5abec7e 100644 --- a/src/Api.ts +++ b/src/Api.ts @@ -7,7 +7,7 @@ class Api { constructor() { this.axios = Axios.create({ - baseURL: '/api/v2', + baseURL: 'api/v2', }); this.axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; diff --git a/src/components/MainToolbar.vue b/src/components/MainToolbar.vue index c4f52c9..8e22c0c 100644 --- a/src/components/MainToolbar.vue +++ b/src/components/MainToolbar.vue @@ -13,7 +13,7 @@ > qBittorrent Web UI diff --git a/vue.config.js b/vue.config.js index b63741b..3af8df3 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,5 +1,6 @@ module.exports = { outputDir: 'dist/public', + publicPath: './', devServer: { port: 8000,