From bd214436d8cab22a4a35959e98a6abed3609c452 Mon Sep 17 00:00:00 2001 From: tangzh Date: Fri, 11 Jul 2025 21:58:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eladmin-web/.env.production | 4 ++-- eladmin-web/src/router/routers.js | 4 ++-- eladmin-web/src/store/modules/api.js | 2 +- eladmin-web/src/views/bus/busDevice/index.vue | 11 +++++------ eladmin-web/src/views/login.vue | 4 ++-- .../src/main/resources/config/application-dev.yml | 8 ++++---- .../src/main/resources/config/application.yml | 2 +- 7 files changed, 17 insertions(+), 18 deletions(-) diff --git a/eladmin-web/.env.production b/eladmin-web/.env.production index 46ad91f..c734a30 100644 --- a/eladmin-web/.env.production +++ b/eladmin-web/.env.production @@ -2,6 +2,6 @@ ENV = 'production' # 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置 # 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http -VUE_APP_BASE_API = 'http://121.37.139.13:8080' +VUE_APP_BASE_API = 'https://online.totustec.com/api' # 如果接口是 http 形式, wss 需要改为 ws -VUE_APP_WS_API = 'ws://121.37.139.13:8080' +VUE_APP_WS_API = 'wss://online.totustec.com/api' diff --git a/eladmin-web/src/router/routers.js b/eladmin-web/src/router/routers.js index 8a4cf6c..bbbc87d 100644 --- a/eladmin-web/src/router/routers.js +++ b/eladmin-web/src/router/routers.js @@ -61,8 +61,8 @@ export const constantRouterMap = [ ] export default new Router({ - // mode: 'hash', - mode: 'history', + mode: 'hash', + // mode: 'history', scrollBehavior: () => ({ y: 0 }), routes: constantRouterMap }) diff --git a/eladmin-web/src/store/modules/api.js b/eladmin-web/src/store/modules/api.js index 563c578..a78999c 100644 --- a/eladmin-web/src/store/modules/api.js +++ b/eladmin-web/src/store/modules/api.js @@ -19,7 +19,7 @@ const api = { // 文件上传 fileUploadApi: baseUrl + '/api/localStorage', // baseUrl, - baseApi: baseUrl + baseApi: baseUrl.replace('api', 'upload') } } diff --git a/eladmin-web/src/views/bus/busDevice/index.vue b/eladmin-web/src/views/bus/busDevice/index.vue index 7234afa..c23b5e3 100644 --- a/eladmin-web/src/views/bus/busDevice/index.vue +++ b/eladmin-web/src/views/bus/busDevice/index.vue @@ -99,7 +99,6 @@