Fix: Correct redirect usage

pull/4492/head
NihadBadalov 3 months ago
parent aae0673a3d
commit d4c7ebfafe

@ -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";
}
</script>
<style lang="scss" scoped>

Loading…
Cancel
Save