diff --git a/.env.dev b/.env.dev index e0b89faf..526323a3 100644 --- a/.env.dev +++ b/.env.dev @@ -12,9 +12,9 @@ VUE_APP_TITLE = 洛玻集团驾驶舱 # 杨姗姗 # VUE_APP_BASE_API = 'http://172.16.20.218:7070' # 小田 -# VUE_APP_BASE_API = 'http://172.16.19.232:7070' +VUE_APP_BASE_API = 'http://172.16.19.232:7070' # 测试 -VUE_APP_BASE_API = 'http://192.168.0.35:8080' +# VUE_APP_BASE_API = 'http://192.168.0.35:8080' # 闫阳 # VUE_APP_BASE_API = 'http://172.16.19.131:7070' diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 5ba38c1f..72fb52a9 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -14,15 +14,16 @@ - + - + 退出登录 + 切换账号 @@ -97,7 +98,12 @@ export default { checkPermi(permissions) { return this.$auth.hasPermi(permissions) return true; - } + }, + handleToggle() { + this.$store.dispatch('LogOut').then(() => { + location.href = getPath('/index'); + }) + }, } } diff --git a/src/views/home/components/Header.vue b/src/views/home/components/Header.vue index 48dc441f..735c55b0 100644 --- a/src/views/home/components/Header.vue +++ b/src/views/home/components/Header.vue @@ -8,13 +8,17 @@
- - - - + +
+ + {{ nickname }} + +
- 退出登录 - 切换账号 + + 退出登录 + + 切换账号
@@ -44,6 +48,7 @@