From 11602ba2ecdca64f70ecf53f6e97526c89bb09f1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=97=E6=80=9D?= <965386816@qq.com>
Date: Thu, 6 Jul 2023 08:55:51 +0800
Subject: [PATCH] gx
---
src/views/layout/index.vue | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/views/layout/index.vue b/src/views/layout/index.vue
index 246ee53..4cc8c37 100644
--- a/src/views/layout/index.vue
+++ b/src/views/layout/index.vue
@@ -61,7 +61,7 @@
个人中心
- 退出
+ 退出
@@ -122,7 +122,7 @@
个人中心
- 退出
@@ -155,7 +155,7 @@ import menuItem from "./components/menu/menu-item.vue";
import breadcrumb from "./components/breadcrumb/index.vue";
const user = tools.data.get("user");
-
+const router = useRouter()
const route = useRoute();
let store = useCar();
@@ -195,6 +195,7 @@ emitter.on("closeModifyPassword", (e) => {
});
const handleUserMenu = (command) => {
+ console.log('command',);
if ("modifyPassword" == command) {
data.dialog.visibled = true;
} else if ("logout" == command) {
@@ -204,7 +205,7 @@ const handleUserMenu = (command) => {
type: "warning",
}).then(() => {
tools.data.clear();
- Router.push("/login");
+ router.push("/login");
});
}
};