一、背景描述 用VUE的时候报这个错 Uncaught TypeError: Cannot read property ‘dispatch’ of undefined 二、问题分析 1、我的代码是酱紫滴 data() { return { // 计时器 whole_timer: null } }, created() { this.isLoginOut(); }, isLoginOut() { console.log("11111:" + this) clearInterval