1234567891011121314151617181920212223242526 |
- <template>
- <view>
- <!-- 用户未登录时,显示登录组件 -->
- <my-login v-if="!token && token === ''"></my-login>
-
- <!-- 用户登录后,显示用户信息组件 -->
- <my-userinfo v-else></my-userinfo>
- </view>
- </template>
- <script>
- import { mapState, mapMutations } from 'vuex'
-
- export default {
- computed: {
- ...mapState('m_user', ['token'])
- },
- data() {
- return {
- };
- }
- }
- </script>
- <style lang="scss">
- </style>
|