You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
657 B

<template>
<view class="layout-page" :style="themeStyle">
<slot />
<!-- toast -->
<van-toast id="van-toast" />
<!-- dialog -->
<van-dialog id="van-dialog" />
</view>
</template>
<script>
import { mapGetters,mapActions,mapState} from "vuex";
export default {
data(){
return {
// 页面下标
pageIdx:undefined
}
},
components: {
},
computed: {
...mapGetters(["themeStyle"]),
...mapState({
storeIdx:'pageIdx'
})
},
methods: {
...mapActions({
setPageIdx:'setPageIdx'
})
},
created() {
this.pageIdx = this.storeIdx
this.setPageIdx()
},
};
</script>