chore: make class to get the device form factor

This commit is contained in:
Shishkevich D. committed 2025-03-21 15:09:05 +00:00
1 parent 510c35f450
commit 6f4eefe601
5 files changed
+11 -6

No files matched your search

+2 -2
View File
@@ -709,7 +709,7 @@
showAlert: false,
ipLimitEnable: false,
pageSize: 50,
isMobile: window.innerWidth <= 768,
isMobile: DeviceUtils.isMobile(),
},
methods: {
loading(spinning = true) {
@@ -1473,7 +1473,7 @@
return false
},
onResize() {
this.isMobile = window.innerWidth <= 768;
this.isMobile = DeviceUtils.isMobile();
}
},
watch: {