From 9320341d835e0c4e4632d8682bddf3444c841457 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期四, 08 七月 2021 15:53:41 +0800 Subject: [PATCH] 修改昵称 --- src/pages/desktop/index/components/Tools.vue | 28 +++------------------------- 1 files changed, 3 insertions(+), 25 deletions(-) diff --git a/src/pages/desktop/index/components/Tools.vue b/src/pages/desktop/index/components/Tools.vue index 3ae05c9..19faa18 100644 --- a/src/pages/desktop/index/components/Tools.vue +++ b/src/pages/desktop/index/components/Tools.vue @@ -130,30 +130,12 @@ if (window.toolIntervalArr) { window.toolIntervalArr.forEach(item => clearInterval(item)); } - window.toolIntervalArr = [ setInterval(function () { _that.notificationCenterMessageCount += 1; }, 600) ]; }, - // watch:{ - // '$store.state.desktop.frames':{ - // handler(n,o){ - // if(n){ - // ; - // n.forEach((item,index) => { - // if(item.order >= this.maxOrder){ - // this.maxOrderOne = item.id; - // } - // }); - // } - // }, - // deep: true - // } - // }, - - methods: { submitForm(formName) { this.$refs[formName].validate((valid) => { @@ -241,17 +223,13 @@ confirmButtonClass: "comfirm-class-sure" }).then(_ => { logout().then(res => { - if (res === "閫�鍑烘垚鍔�") { + if (res.success) { + this.$notify.success(res.msg); + location.assign('/view/index'); sessionStorage.removeItem("userInfo"); // 鎵嬪姩閫�鍑�, 鍙栨秷鑷姩鐧诲綍 sessionStorage.removeItem("autoLogin"); _this.userInfo = {}; - location.assign('/view/index'); - this.$notify({ - title: "鎻愮ず", - type: "success", - message: "閫�鍑烘垚鍔燂紒" - }); } else { this.$notify({ title: "鎻愮ず", -- Gitblit v1.8.0