<template>
  <view class="home">
    {{title}}
    <view class="message">
      这里是测试样式
    </view>
    <u-button>测试</u-button>
    <TabBar />
  </view>
</template>

<script lang="ts">
import { Vue, Component, Watch, Emit, Ref } from 'vue-property-decorator';

@Component
export default class Home extends Vue {
  private title = '这里是首页'
  onShow() {
    this.$u.toast('首页')
    this.$u.vuex('vuex_user', {
      name: '测试',
      id: '123456'
    })
  }
}
</script>

<style lang="scss" scoped>
.message {
  color: lightblue;
}
</style>
