From a0ee5d636f627f70d53b5b549258acc0b59f0816 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 15 Mar 2021 10:29:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=89=93=E5=8C=85?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=E5=89=8D=E7=AB=AF=E5=88=B7=E6=96=B0=E8=A2=AB?= =?UTF-8?q?=E6=8B=A6=E6=88=AA=E7=9A=84bu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.env.production | 3 ++- frontend/src/router/index.js | 3 ++- frontend/src/views/dataset/add/AddSQL.vue | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/.env.production b/frontend/.env.production index a33fdd2479..d24a4671c1 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -2,5 +2,6 @@ ENV = 'production' # base api -VUE_APP_BASE_API = 'http://localhost:8081/' +# VUE_APP_BASE_API = 'http://localhost:8081/' +VUE_APP_BASE_API = '/' diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index 26ae503f3e..de8da4cb05 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -178,7 +178,8 @@ export const constantRoutes = [ ] const createRouter = () => new Router({ - mode: 'history', // require service support + // mode: 'history', // require service support + mode: 'hash', scrollBehavior: () => ({ y: 0 }), routes: constantRoutes }) diff --git a/frontend/src/views/dataset/add/AddSQL.vue b/frontend/src/views/dataset/add/AddSQL.vue index feb132fb51..fc29f85146 100644 --- a/frontend/src/views/dataset/add/AddSQL.vue +++ b/frontend/src/views/dataset/add/AddSQL.vue @@ -50,7 +50,7 @@