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