Advertisement

修改seatNumber传递问题,通过Vuex与localStorage结合实现数据传输

阅读量:
在这里插入图片描述

问题一:我这个返回有点问题,应该怎样改呢

返回部分的方法截图

在这里插入图片描述

这样修改:增加了某个判断逻辑,在所有路由为(account_center)的情况下使得返回路径固定至/main

复制代码
    back: function () {
      let _self = this
      if (this.$route.path.toLowerCase() === '/opinion' || this.$route.path.toLowerCase() === '/Opinion') {
    _self.$parent.$parent.back2()
      } else if(this.$route.path === '/account_center' ){
    this.$router.push('/main')
      } el

全部评论 (0)

还没有任何评论哟~