()
| 69 | |
| 70 | const AppDeviceEnquire = { |
| 71 | mounted () { |
| 72 | const { $store } = this |
| 73 | deviceEnquire(deviceType => { |
| 74 | switch (deviceType) { |
| 75 | case DEVICE_TYPE.DESKTOP: |
| 76 | $store.commit('TOGGLE_DEVICE', 'desktop') |
| 77 | $store.dispatch('setSidebar', true) |
| 78 | break |
| 79 | case DEVICE_TYPE.TABLET: |
| 80 | $store.commit('TOGGLE_DEVICE', 'tablet') |
| 81 | $store.dispatch('setSidebar', false) |
| 82 | break |
| 83 | case DEVICE_TYPE.MOBILE: |
| 84 | default: |
| 85 | $store.commit('TOGGLE_DEVICE', 'mobile') |
| 86 | $store.dispatch('setSidebar', true) |
| 87 | break |
| 88 | } |
| 89 | }) |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | const mixinForm = { |
nothing calls this directly
no test coverage detected