648540858
2021-10-29 c35932e24cf9dda9ef396ab5a45fb1a6e5539748
web_src/src/App.vue
@@ -21,7 +21,6 @@
  created() {
    if(!this.$cookies.get("session")){
      //如果没有登录状态则跳转到登录页
      console.log("33333333")
      this.$router.push('/login');
    }
  },
@@ -43,7 +42,6 @@
      //cookie操作方法在源码里有或者参考网上的即可
      if(!this.$cookies.get("session")){
        //如果没有登录状态则跳转到登录页
        console.log("222222222")
        this.$router.push('/login');
      }
    },