Vue click refresh route how to return to the current root directory

add this to refresh back to the home page

mounted:function(){
    this.$router.push("/home");
}

how to refresh back to the current route root

clipboard.png

clipboard.png

Feb.24,2022

mounted:function(){
    var path = this.$route.path.match(/^\/[^\/]*/)[0]
    this.$router.push(path);
}

you can get path using matched provided by router

mounted:function(){
    var path = this.$route.matched[1].path;
    this.$router.push(path);
}
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-1e4d890-65557.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-1e4d890-65557.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?