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 @@