File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
web/src/view/layout/aside/historyComponent Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ export default {
41
41
}
42
42
},
43
43
created () {
44
+ this .$bus .on (' mobile' ,(isMobile )=> {
45
+ this .isMobile = isMobile
46
+ })
47
+ this .$bus .on (' collapse' ,(isCollapse )=> {
48
+ this .isCollapse = isCollapse
49
+ })
44
50
const initHistorys = [
45
51
{
46
52
name: ' dashboard' ,
@@ -53,16 +59,10 @@ export default {
53
59
JSON .parse (sessionStorage .getItem (' historys' )) || initHistorys
54
60
this .setTab (this .$route )
55
61
},
56
- mounted () {
57
- this .$bus .on (' collapse' ,(isCollapse )=> {
58
- this .isCollapse = isCollapse
59
- })
60
- this .$bus .on (' mobile' ),(isMobile )=> {
61
- this .isMobile = isMobile
62
- }
63
- },
62
+
64
63
beforeDestroy (){
65
64
this .$bus .off (' collapse' )
65
+ this .$bus .off (' mobile' )
66
66
},
67
67
methods: {
68
68
openContextMenu (e ) {
You can’t perform that action at this time.
0 commit comments