mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-03-21 18:15:49 +00:00
chore: make class to get the device form factor
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user