mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-10-09 18:49:19 +08:00
Feat: Redirect /link to /dashboard for non-mobile users
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user