File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ export default {
1313 } ,
1414 methods : {
1515 showTree ( arg , cb ) {
16- const WorkSpace = Vue . extend ( require ( './hdfsSidebar.vue' ) ) ;
17- const newW = new WorkSpace ( ) ;
16+ const ws = require ( './hdfsSidebar.vue' ) ;
17+ const WSComp = Vue . extend ( ws . default ) ;
18+ const newW = new WSComp ( ) ;
1819 cb ( newW ) ;
1920 } ,
2021 } ,
Original file line number Diff line number Diff line change @@ -45,8 +45,9 @@ export default {
4545 } ) ;
4646 } ,
4747 showHive ( arg , cb ) {
48- const Hive = Vue . extend ( require ( './hiveSidebar.vue' ) ) ;
49- const newW = new Hive ( ) ;
48+ const hive = require ( './hiveSidebar.vue' ) ;
49+ const HiveComp = Vue . extend ( hive . default ) ;
50+ const newW = new HiveComp ( ) ;
5051 cb ( newW ) ;
5152 } ,
5253 } ,
Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ export default {
1414 methods : {
1515 showTree ( arg , cb ) {
1616 // get tree
17- const WorkSpace = Vue . extend ( require ( './workSidebar.vue' ) ) ;
18- const newW = new WorkSpace ( ) ;
17+ const ws = require ( './workSidebar.vue' ) ;
18+ const WSComp = Vue . extend ( ws . default ) ;
19+ const newW = new WSComp ( ) ;
1920 cb ( newW ) ;
2021 } ,
2122 } ,
You can’t perform that action at this time.
0 commit comments