mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-02 00:10:42 +02:00
Revert replace router.push into router.replace 🐓"
This reverts commit 92604cfe6d
.
This commit is contained in:
parent
92604cfe6d
commit
0ec4de3a13
@ -14,15 +14,16 @@ export default {
|
||||
watch: {
|
||||
"$root.isMobile"(newVal) {
|
||||
if (!newVal && this.$route.path === "/list") {
|
||||
this.$router.replace({ path: "/dashboard" });
|
||||
this.$router.push("/dashboard");
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (!this.$root.isMobile && this.$route.path === "/list") {
|
||||
this.$router.replace({ path: "/dashboard" });
|
||||
this.$router.push("/dashboard");
|
||||
}
|
||||
},
|
||||
|
||||
};
|
||||
</script>
|
||||
|
||||
@ -32,4 +33,5 @@ export default {
|
||||
.shadow-box {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user