The route that this.$router.push jumps is different from the route that watch listens to?


watch: {
      $route(newVal, oldVal){
        console.log(newVal.path)
        this.setTags(newVal);
      }
    },
 closeTags(index) {
        const delItem = this.tagsList.splice(index, 1)[0];
        const item = this.tagsList[index] ? this.tagsList[index] : this.tagsList[index - 1];
        if (item) {
          console.log(item.path)
          delItem.path === this.$route.fullPath && this.$router.push(item.path);
        }else{
          this.$router.push("/main");
        }
      }
May.08,2022

can you post the console result, and what is the operation of routing the path with store

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36e88-343ff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36e88-343ff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?