panlinlin
2021-04-26 b92027f31ef24583e8b9d4c2dc44c7e9262a2023
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');
      }
    },