使用wtach监听vuex数据的变化,在进行具体的业务操作 watch: { '$store.state.recordTimer'(newVal, oldVal) { // 根据新旧值再去做业务需求 } }