diff --git a/package-lock.json b/package-lock.json index 100cdcd88..328b1d287 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "uptime-kuma", - "version": "2.0.0-dev", + "version": "2.0.0-beta.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "uptime-kuma", - "version": "2.0.0-dev", + "version": "2.0.0-beta.0", "license": "MIT", "dependencies": { "@grpc/grpc-js": "~1.8.22", diff --git a/src/pages/List.vue b/src/pages/List.vue index dd2d46059..53d3f71da 100644 --- a/src/pages/List.vue +++ b/src/pages/List.vue @@ -11,6 +11,18 @@ export default { components: { 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'); + } + } + } };