Skip to content

Commit

Permalink
Feat: Redirect /link to /dashboard for non-mobile users
Browse files Browse the repository at this point in the history
  • Loading branch information
NihadBadalov committed Feb 14, 2024
1 parent 45c03c2 commit aae0673
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit aae0673

Please sign in to comment.