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