add test.
This commit is contained in:
30
test/dashboard2/src/AppNavigator.vue
Normal file
30
test/dashboard2/src/AppNavigator.vue
Normal file
@@ -0,0 +1,30 @@
|
||||
<template>
|
||||
<v-ons-navigator
|
||||
:page-stack="pageStack"
|
||||
:pop-page="storePop"
|
||||
:options="options"
|
||||
></v-ons-navigator>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AppSplitter from './AppSplitter.vue'
|
||||
|
||||
export default {
|
||||
beforeCreate () {
|
||||
this.$store.commit('navigator/push', AppSplitter)
|
||||
},
|
||||
computed: {
|
||||
pageStack () {
|
||||
return this.$store.state.navigator.stack
|
||||
},
|
||||
options () {
|
||||
return this.$store.state.navigator.options
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
storePop () {
|
||||
this.$store.commit('navigator/pop')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user