Revert "redirect to /dashboard when shrinking on computer from /list on mobile size"

This reverts commit bb14bc18ca.
This commit is contained in:
Logorrheique 2024-11-04 11:15:18 +01:00
parent bb14bc18ca
commit 04943c8553
2 changed files with 2 additions and 14 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "uptime-kuma", "name": "uptime-kuma",
"version": "2.0.0-beta.0", "version": "2.0.0-dev",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "uptime-kuma", "name": "uptime-kuma",
"version": "2.0.0-beta.0", "version": "2.0.0-dev",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@grpc/grpc-js": "~1.8.22", "@grpc/grpc-js": "~1.8.22",

View file

@ -11,18 +11,6 @@ export default {
components: { components: {
MonitorList, MonitorList,
}, },
mounted() {
if (!this.$root.isMobile && this.$route.path === '/list') {
this.$router.push('/dashboard');
}
},
watch: {
'$root.isMobile'(newVal) {
if (!newVal && this.$route.path === '/list') {
this.$router.push('/dashboard');
}
}
}
}; };
</script> </script>