File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <div id =" userLayout" :class =" ['user-layout-wrapper', device ]" >
2
+ <div id =" userLayout" :class =" ['user-layout-wrapper', isMobile && 'mobile' ]" >
3
3
<div class =" container" >
4
4
<div class =" top" >
5
5
<div class =" header" >
13
13
</div >
14
14
</div >
15
15
16
- <route -view></ route-view >
16
+ <router -view / >
17
17
18
18
<div class =" footer" >
19
19
<div class =" links" >
30
30
</template >
31
31
32
32
<script >
33
- import RouteView from ' ./RouteView '
33
+ import { deviceMixin } from ' @/store/device-mixin '
34
34
35
35
export default {
36
36
name: ' UserLayout' ,
37
- components: { RouteView },
38
- mixins: [],
39
- data () {
40
- return {}
41
- },
37
+ mixins: [deviceMixin],
42
38
mounted () {
43
39
document .body .classList .add (' userLayout' )
44
40
},
@@ -49,7 +45,7 @@ export default {
49
45
</script >
50
46
51
47
<style lang="less" scoped>
52
- #userLayout .user-layout-wrapper {
48
+ #userLayout .user-layout-wrapper {
53
49
height : 100% ;
54
50
55
51
& .mobile {
You can’t perform that action at this time.
0 commit comments