|
@@ -23,33 +23,6 @@ export default {
|
|
|
// }
|
|
|
//
|
|
|
// })
|
|
|
-
|
|
|
- // window.addEventListener('beforeunload', e => this.beforeunloadHandler(e));
|
|
|
- },
|
|
|
- // destroyed() {
|
|
|
- // // 关闭浏览器执行退出接口
|
|
|
- // window.removeEventListener('beforeunload', e => this.beforeunloadHandler(e))
|
|
|
- // },
|
|
|
- // methods: {
|
|
|
- // // 关闭窗口之前执行
|
|
|
- // async beforeunloadHandler(e) {
|
|
|
- // await this.clearLogin() // 退出登录接口
|
|
|
- // // this._beforeUnload_time = new Date().getTime()
|
|
|
- // // console.log('this._beforeUnload_time:', this._beforeUnload_time)
|
|
|
- // window.close()
|
|
|
- // },
|
|
|
- // // 退出登录接口
|
|
|
- // clearLogin() {
|
|
|
- // alert('等处。。。。')
|
|
|
- // this.$axios.post(
|
|
|
- // '/logout', {}
|
|
|
- // ).then((res) => {
|
|
|
- // this.$message.success(res.data)
|
|
|
- // removeToken()
|
|
|
- // //注销返回自己的登录页
|
|
|
- // this.$router.push(`/login?redirect=${this.$route.fullPath}`)
|
|
|
- // })
|
|
|
- // }
|
|
|
- // }
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|