| | |
| | | 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) => { |
| | |
| | | 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: "提示", |