mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-30 19:20:40 +00:00
25 lines
401 B
JavaScript
25 lines
401 B
JavaScript
export default {
|
|
|
|
data() {
|
|
return {
|
|
windowWidth: window.innerWidth,
|
|
}
|
|
},
|
|
|
|
created() {
|
|
window.addEventListener("resize", this.onResize);
|
|
},
|
|
|
|
methods: {
|
|
onResize() {
|
|
this.windowWidth = window.innerWidth;
|
|
},
|
|
},
|
|
|
|
computed: {
|
|
isMobile() {
|
|
return this.windowWidth <= 767.98;
|
|
},
|
|
}
|
|
|
|
}
|