Commit 868afd64 authored by 刘帅阳's avatar 刘帅阳

注释log

parent 52ea4378
......@@ -30,18 +30,18 @@ export default {
},
// 重置定时器
resetTimer() {
console.log('重置定时器重置定时器重置定时器')
// console.log('重置定时器重置定时器重置定时器')
clearTimeout(this.timeout)
this.startTimer()
},
/** 启动定时器*/
startTimer() {
console.log('启动定时器启动定时器启动定时器', this.$route.path)
// console.log('启动定时器启动定时器启动定时器', this.$route.path)
if (this.$route.path !== '/login') {
// 启动一个30分钟的定时器
this.timeout = setTimeout(() => {
// 超时处理逻辑,例如清空token并退出登录
console.log('退出退出')
// console.log('退出退出')
handleLogout().then(res => {
if (res.code === 200) {
this.$message.success('退出成功!')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment