mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +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>
|
||||
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>
|
||||
|
|
Loading…
Reference in a new issue