From de420a146fc2d3401ea70bc9c6a045363dfef09f Mon Sep 17 00:00:00 2001 From: dhy1725534722 <1725534722@qq.com> Date: Fri, 15 Sep 2023 09:04:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/layout/newyjLayout.vue | 5 +++-- src/views/yingji/enforcing.vue | 31 ++++++++++++++++++++----------- src/views/yingji/focusEnter.vue | 18 +++++++++++------- 4 files changed, 35 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 205dd41..3357c5d 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "js-beautify": "1.13.0", "js-cookie": "3.0.1", "jsencrypt": "3.0.0-rc.1", - "moment": "^2.24.0", + "moment": "^2.29.4", "nprogress": "0.2.0", "postcss-px2rem": "^0.3.0", "quill": "^1.3.6", diff --git a/src/layout/newyjLayout.vue b/src/layout/newyjLayout.vue index f25d4de..e972999 100644 --- a/src/layout/newyjLayout.vue +++ b/src/layout/newyjLayout.vue @@ -111,15 +111,16 @@ export default { }, //退出登录 logout() { + this.$confirm("确定注销并退出系统吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning", }) .then(() => { - this.$store.dispatch("LogOut").then(() => { + // this.$store.dispatch("LogOut").then(() => { this.$router.replace("/toLogin").catch(() => {}); - }); + // }); }) .catch(() => {}); }, diff --git a/src/views/yingji/enforcing.vue b/src/views/yingji/enforcing.vue index 251d401..ee340b6 100644 --- a/src/views/yingji/enforcing.vue +++ b/src/views/yingji/enforcing.vue @@ -37,9 +37,9 @@