From 04dd2951b2f666d5b629420fb56d75517d50adbb Mon Sep 17 00:00:00 2001 From: ysn <2126564605@qq.com> Date: Wed, 20 May 2026 17:43:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E4=BA=8E/=E7=B3=BB=E7=BB=9F=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE/=E9=A1=B5=E9=9D=A2=E6=90=AD=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/AboutDialog.vue | 123 +++++++ src/layout/components/ESignatureDialog.vue | 320 ++++++++++++++++++ src/layout/components/Navbar.vue | 40 ++- src/layout/components/SystemSettingDialog.vue | 227 +++++++++++++ 4 files changed, 708 insertions(+), 2 deletions(-) create mode 100644 src/layout/components/AboutDialog.vue create mode 100644 src/layout/components/ESignatureDialog.vue create mode 100644 src/layout/components/SystemSettingDialog.vue diff --git a/src/layout/components/AboutDialog.vue b/src/layout/components/AboutDialog.vue new file mode 100644 index 0000000..f522cfd --- /dev/null +++ b/src/layout/components/AboutDialog.vue @@ -0,0 +1,123 @@ + + + + + diff --git a/src/layout/components/ESignatureDialog.vue b/src/layout/components/ESignatureDialog.vue new file mode 100644 index 0000000..24bb8ba --- /dev/null +++ b/src/layout/components/ESignatureDialog.vue @@ -0,0 +1,320 @@ + + + + + diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 2f1adaa..a6220d4 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -57,18 +57,31 @@ 个人中心 - + 锁定屏幕 + + 系统设置 + + + 关于 + + + 切换账号 + 退出登录 + + + + @@ -85,6 +98,8 @@ import Search from "@/components/HeaderSearch"; import RuoYiGit from "@/components/RuoYi/Git"; import RuoYiDoc from "@/components/RuoYi/Doc"; import HeaderNotice from "./HeaderNotice"; +import SystemSettingDialog from "./SystemSettingDialog"; +import AboutDialog from "./AboutDialog"; export default { components: { @@ -99,6 +114,14 @@ export default { RuoYiGit, RuoYiDoc, HeaderNotice, + SystemSettingDialog, + AboutDialog, + }, + data() { + return { + showSystemSetting: false, + showAbout: false, + }; }, computed: { ...mapGetters(["sidebar", "avatar", "device", "nickName"]), @@ -131,6 +154,19 @@ export default { this.$router.push("/lock"); }); }, + switchAccount() { + this.$confirm("确定要切换账号吗?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + this.$store.dispatch("LogOut").then(() => { + location.href = "/index"; + }); + }) + .catch(() => {}); + }, logout() { this.$confirm("确定注销并退出系统吗?", "提示", { confirmButtonText: "确定", diff --git a/src/layout/components/SystemSettingDialog.vue b/src/layout/components/SystemSettingDialog.vue new file mode 100644 index 0000000..e1c39f8 --- /dev/null +++ b/src/layout/components/SystemSettingDialog.vue @@ -0,0 +1,227 @@ + + + + +