Kuma/src/pages/List.vue
Logorrheique 49a5272573 fix
2024-11-04 13:29:39 +01:00

36 lines
701 B
Vue

<template>
<transition name="slide-fade" appear>
<MonitorList :scrollbar="true" />
</transition>
</template>
<script>
import MonitorList from "../components/MonitorList.vue";
export default {
components: {
MonitorList,
},
mounted() {
if (!this.$root.isMobile && this.$route.path === "/list") {
this.$router.push("/dashboard");
}
},
watch: {
"$root.isMobile"(newVal) {
if (!newVal && this.$route.path === "/list") {
this.$router.push("/dashboard");
}
}
}
};
</script>
<style lang="scss" scoped>
@import "../assets/vars";
.shadow-box {
padding: 20px;
}
</style>