mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-31 11:40:39 +00:00
26 lines
401 B
JavaScript
26 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;
|
||
|
},
|
||
|
}
|
||
|
|
||
|
}
|