mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
Feat: Redirect /link to /dashboard for non-mobile users
This commit is contained in:
parent
45c03c2b40
commit
aae0673a3d
1 changed files with 6 additions and 0 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue