Feat: Redirect /link to /dashboard for non-mobile users

This commit is contained in:
NihadBadalov 2024-02-14 10:34:06 +01:00
parent 45c03c2b40
commit aae0673a3d

View file

@ -6,12 +6,18 @@
<script>
import MonitorList from "../components/MonitorList.vue";
import mobile from "../mixins/mobile";
export default {
components: {
MonitorList,
},
};
mobile.methods.onResize();
if (!mobile.computed.isMobile(mobile.methods.windowWidth) && window.location.pathname === "/list") {
window.location.href = "/dashboard";
}
</script>
<style lang="scss" scoped>