Commit 511cc3da by liimin

feat(click): 移除 click.js 中的录音相关逻辑与文件处理功能

移除了 mixin/click.js 文件中所有与录音管理、文件重命名、应用包检查及自动更新相关的代码。
这些功能将由其他模块或插件统一维护,以降低模块间的耦合度并提升可维护性。

feat(firstTime): 移除 firstTime.js 中的定时退出逻辑

删除了 mixin/firstTime.js 文件中用于监听页面无操作并在超时后自动返回首页的相关实现。
该行为将通过更通用的用户活跃度监控机制来替代。
1 parent 45870859
export default {
data() {
return {
times: 0,
interval: null
}
},
mounted() {
this.start()
},
beforeDestroy() {
clearInterval(this.interval)
},
methods: {
handleTouch() {
this.times = 0
},
close() {
this.back()
this.$store.dispatch('setTab', 0)
},
start() {
this.interval = setInterval(() => {
this.times++
if (this.times == 60) {
this.close()
clearInterval(this.interval)
}
}, 1000)
}
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!