Fix: Correct redirect usage

This commit is contained in:
NihadBadalov 2024-02-15 09:03:09 +01:00
parent aae0673a3d
commit d4c7ebfafe

View file

@ -12,12 +12,12 @@ export default {
components: { components: {
MonitorList, 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";
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>