想在切换路由的时候把采集的数据发送出去,但是修改vuex的值的时候不生beforeRouteLeave: (to, from, next) => {  try {    console.log("即将离开旧路由:"+new Date().getTime());    this.$store.commit('GET_HTTPRESPONSETIME', new Date().getTime());    this.closPages();  } catch (error) {      }finally{    next();  }  这样写有什么不对吗?
                    
                    
                添加回答
举报
0/150
	提交
		取消
	
