|
@@ -20,12 +20,14 @@
|
|
|
enquireScreen(deviceType => {
|
|
|
// tablet
|
|
|
if (deviceType === 0) {
|
|
|
- that.$store.commit('TOGGLE_DEVICE', 'mobile')
|
|
|
+ // that.$store.commit('TOGGLE_DEVICE', 'mobile')
|
|
|
+ that.$store.commit('TOGGLE_DEVICE', 'desktop')
|
|
|
that.$store.dispatch('setSidebar', false)
|
|
|
}
|
|
|
// mobile
|
|
|
else if (deviceType === 1) {
|
|
|
- that.$store.commit('TOGGLE_DEVICE', 'mobile')
|
|
|
+ // that.$store.commit('TOGGLE_DEVICE', 'mobile')
|
|
|
+ that.$store.commit('TOGGLE_DEVICE', 'desktop')
|
|
|
that.$store.dispatch('setSidebar', false)
|
|
|
}
|
|
|
else {
|