diff --git a/src/pages/List.vue b/src/pages/List.vue index 58b23f13b..c24542eb7 100644 --- a/src/pages/List.vue +++ b/src/pages/List.vue @@ -12,12 +12,12 @@ export default { components: { MonitorList, }, + async mounted() { + if (!mobile.computed.isMobile()) { + this.$router.push("/dashboard"); + } + }, }; - -mobile.methods.onResize(); -if (!mobile.computed.isMobile(mobile.methods.windowWidth) && window.location.pathname === "/list") { - window.location.href = "/dashboard"; -}