From 51735d149e899bc335f50ab91cb9cf5d3622038a Mon Sep 17 00:00:00 2001 From: xins Date: Fri, 27 Oct 2023 09:05:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=A5=E4=BE=9D=E5=BE=AE=E6=9C=8D=E5=8A=A11.?= =?UTF-8?q?6.3=201=E3=80=81=E4=B8=BA=E9=85=8D=E7=BD=AEssl=EF=BC=8C?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E9=A1=B5=E9=9D=A2=E9=85=8D=E7=BD=AE=E5=9C=A8?= =?UTF-8?q?=E6=A0=B9=E7=9B=AE=E5=BD=95=E4=B8=8B=202=E3=80=81=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E7=AE=A1=E7=90=86=EF=BC=8C=E8=AE=BE=E5=A4=87=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=BA=E7=9B=B4=E8=BF=9E=E8=AE=BE=E5=A4=87=E6=97=B6?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E8=AE=BE=E5=A4=87=E6=A8=A1=E5=9E=8B=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E3=80=82=203=E3=80=81=E4=B8=8B=E5=8F=91=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=E6=97=B6=EF=BC=8Ctopic=E5=A4=A7=E5=B0=8F=E5=86=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/core/constant/HwDictConstants.java | 2 +- ruoyi-ui/src/layout/components/Navbar.vue | 2 +- ruoyi-ui/src/router/index.js | 1 + ruoyi-ui/src/views/business/device/index.vue | 47 ++++++++++++------- ruoyi-ui/vue.config.js | 8 ++-- 5 files changed, 37 insertions(+), 23 deletions(-) diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/HwDictConstants.java b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/HwDictConstants.java index 781104c..87657c3 100644 --- a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/HwDictConstants.java +++ b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/HwDictConstants.java @@ -99,7 +99,7 @@ public class HwDictConstants { public static final String CONTROL_COMMAND_REDIS_KEY = "mqtt:channel:down";//下发控制指令到redis的key public static final String CONTROL_COMMAND_TOPIC_VALUE = "/v1/{}/device/command";//下发控制指令的topic - public static final String CONTROL_COMMAND_TOPIC_KEY = "TOPIC"; + public static final String CONTROL_COMMAND_TOPIC_KEY = "Topic"; public static final String CONTROL_COMMAND_PAYLOAD_KEY = "Payload"; public static final String CONTROL_COMMAND_PAYLOAD_MID_KEY = "mid"; public static final String CONTROL_COMMAND_PAYLOAD_TIMESTAMP_KEY = "timestamp"; diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index 176a3cc..be16f65 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -98,7 +98,7 @@ export default { type: 'warning' }).then(() => { this.$store.dispatch('LogOut').then(() => { - location.href = '/index'; + location.href = '/hwsaas/'; }) }).catch(() => {}); } diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index 76418e8..6f56a0e 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -277,6 +277,7 @@ Router.prototype.replace = function push(location) { } export default new Router({ + base:'/hwsaas', mode: 'history', // 去掉url中的# scrollBehavior: () => ({ y: 0 }), routes: constantRoutes diff --git a/ruoyi-ui/src/views/business/device/index.vue b/ruoyi-ui/src/views/business/device/index.vue index b68a58c..a709f0e 100644 --- a/ruoyi-ui/src/views/business/device/index.vue +++ b/ruoyi-ui/src/views/business/device/index.vue @@ -28,7 +28,7 @@ - + + placeholder="请选择所属监控单元" :normalizer="normalizer" :flat="true" clearable + style="width: 200px;"/> @@ -164,7 +165,7 @@ - +