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: {
MonitorList,
},
};
mobile.methods.onResize();
if (!mobile.computed.isMobile(mobile.methods.windowWidth) && window.location.pathname === "/list") {
window.location.href = "/dashboard";
async mounted() {
if (!mobile.computed.isMobile()) {
this.$router.push("/dashboard");
}
},
};
</script>
<style lang="scss" scoped>