|
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
export default {
data() {
return {
locale: zhCN,
}
},
created() {
let that = this
enquireScreen(deviceType => {
// tablet
if (deviceType === 0) {
that.$store.commit('TOGGLE_DEVICE', 'mobile')
that.$store.dispatch('setSidebar', false)
}
// mobile
else if (deviceType === 1) {
that.$store.commit('TOGGLE_DEVICE', 'mobile')
that.$store.dispatch('setSidebar', false)
} else {
that.$store.commit('TOGGLE_DEVICE', 'desktop')
that.$store.dispatch('setSidebar', true)
|
谭毅彬
authored
|
40
41
42
43
44
45
46
47
48
|
::-webkit-scrollbar {
width: 0; /* 设置竖向滚动条宽度为 0 */
overflow-y: hidden;
overflow-x: auto;
}
#app::-webkit-scrollbar {
overflow-y: auto;
overflow-x: auto;
}
|