mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-12-12 13:47:13 +08:00
bugfix display tag view in mobile device (#326)
This commit is contained in:
parent
2d9b33398e
commit
ed74a67ea7
@ -17,6 +17,18 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
scrollWrapper() {
|
scrollWrapper() {
|
||||||
return this.$refs.scrollContainer.$refs.wrap
|
return this.$refs.scrollContainer.$refs.wrap
|
||||||
|
},
|
||||||
|
isMobile() {
|
||||||
|
return this.$store.state.app.device === 'mobile'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
isMobile(value) {
|
||||||
|
if (value) {
|
||||||
|
this.$refs.scrollContainer.$refs.resize.style.display = 'flex'
|
||||||
|
} else {
|
||||||
|
this.$refs.scrollContainer.$refs.resize.style.display = ''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user