From 5df5e63afe4a42c9f006534fbc6f45977bb149b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?= <15040126243@163.com> Date: Wed, 25 Aug 2021 21:50:38 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=A7=A3=E5=86=B3=20logout=20?= =?UTF-8?q?=E5=86=99=E6=AD=BB=20=E6=97=A0=E6=B3=95=E6=89=A9=E5=B1=95?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/layout/components/Navbar.vue | 3 ++- ruoyi-ui/src/views/index.vue | 2 +- ruoyi-ui/src/views/monitor/admin/index.vue | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index 466cd981e..69656f019 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -56,6 +56,7 @@ import SizeSelect from '@/components/SizeSelect' import Search from '@/components/HeaderSearch' import RuoYiGit from '@/components/RuoYi/Git' import RuoYiDoc from '@/components/RuoYi/Doc' +import config from '@/../vue.config' export default { components: { @@ -102,7 +103,7 @@ export default { type: 'warning' }).then(() => { this.$store.dispatch('LogOut').then(() => { - location.href = '/index'; + location.href = config.publicPath + 'index'; }) }).catch(() => {}); } diff --git a/ruoyi-ui/src/views/index.vue b/ruoyi-ui/src/views/index.vue index 1cbf7fe48..1264c2d13 100644 --- a/ruoyi-ui/src/views/index.vue +++ b/ruoyi-ui/src/views/index.vue @@ -381,7 +381,7 @@