117117import packageJson from ' ../../package.json'
118118export default {
119119 data : () => ({
120- version: ' v0.1.0 ' ,
120+ version: ' ' ,
121121 dialog: false ,
122122 dark: false ,
123123 drawer: null ,
@@ -128,13 +128,13 @@ export default {
128128 computed: {
129129 items : function () {
130130 return [
131- // {
132- // icon: 'mdi-alpha-b -box-outline',
133- // title: 'Introduction',
134- // path: '/examples/introduction',
135- // appendIcon: null,
136- // active: true
137- // },
131+ {
132+ icon: ' mdi-alpha-i -box-outline' ,
133+ title: ' Introduction' ,
134+ path: ' /examples/introduction' ,
135+ appendIcon: null ,
136+ active: true
137+ },
138138 {
139139 icon: ' mdi-alpha-b-box-outline' ,
140140 title: this .$vuetify .lang .t (' $vuetify.sidebar.title1.value' ),
@@ -145,8 +145,9 @@ export default {
145145 { title: this .$vuetify .lang .t (' $vuetify.sidebar.title1.children.title4.value' ), path: ' /examples/selectelementbinddata' },
146146 { title: this .$vuetify .lang .t (' $vuetify.sidebar.title1.children.title5.value' ), path: ' /examples/selectinsertremove' }
147147 ],
148- appendIcon: ' mdi-chevron-down' ,
149- active: true
148+ appendIcon: ' mdi-chevron-down'
149+ // ,
150+ // active: true
150151 },
151152 {
152153 icon: ' mdi-alpha-t-box-outline' ,
@@ -218,6 +219,8 @@ export default {
218219 this .dark = true
219220 }
220221 if (this .$route .path === ' /examples' ) {
222+ // this.$router.push('/examples/helloworld').catch(err => { }) // eslint-disable-line
223+ // default route path
221224 this .$router .push (' /examples/helloworld' ).catch (err => { }) // eslint-disable-line
222225 } else {
223226 this .$router .push (this .$route .path ).catch (err => { }) // eslint-disable-line
@@ -300,6 +303,10 @@ export default {
300303 itemClick (item , key ) {
301304 this .subItemActive = null
302305 sessionStorage .setItem (' itemActive' , key)
306+ console .dir (item)
307+ if (! item .children ) {
308+ this .$router .push (item .path ).catch (err => { }) // eslint-disable-line
309+ }
303310 },
304311 subItemClick (item , key ) {
305312 sessionStorage .setItem (' subItemActive' , key)
0 commit comments