diff --git a/acupuncture-前台/src/views/bg.png b/acupuncture-前台/src/views/bg.png index 32da378b..45a52763 100644 Binary files a/acupuncture-前台/src/views/bg.png and b/acupuncture-前台/src/views/bg.png differ diff --git a/acupuncture-前台/src/views/system/user/profile/index.vue b/acupuncture-前台/src/views/system/user/profile/index.vue index 8363cbc1..e78ee1db 100644 --- a/acupuncture-前台/src/views/system/user/profile/index.vue +++ b/acupuncture-前台/src/views/system/user/profile/index.vue @@ -33,6 +33,7 @@ {{ user.dept.deptName }} / {{ postGroup }} + + + 退出登录 + @@ -85,6 +94,19 @@ export default { this.getUser(); }, methods: { + async logout() { + this.$confirm("确定注销并退出系统吗?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + this.$store.dispatch("LogOut").then(() => { + location.href = process.env.VUE_APP_PUBLIC_PATH; + }); + }) + .catch(() => {}); + }, getUser() { getUserProfile().then((response) => { this.user = response.data;