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> <script>
import MonitorList from "../components/MonitorList.vue"; import MonitorList from "../components/MonitorList.vue";
import mobile from "../mixins/mobile";
export default { export default {
components: { components: {
MonitorList, MonitorList,
}, },
}; };
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>