123456789101112131415161718192021222324252627282930313233 |
- <template>
- <div id="app">
- <router-view/>
- </div>
- </template>
-
- <script>
- import { createNamespacedHelpers } from 'vuex'
- const { mapState: mapIndexState, mapActions: mapIndexActions } = createNamespacedHelpers('main')
- export default {
- data () {
- return {}
- },
- computed:{
- ...mapIndexState({
- userInfo: item => item.userInfo
- })
- },
- methods:{
- ...mapIndexActions(['setUserInfo'])
- }
- }
- </script>
-
-
- <style lang="scss">
- @import "./assets/reset.css";
- #app {
- width: 100%;
- height: 100%;
- position: relative;
- }
- </style>
|