<script setup>
  /**
   * name：
   * user：sa0ChunLuyu
   * date：2022-04-19 19:07:23
   */
  const toIndex = () => {
    uni.switchTab({
      url: '/pages/main/index/index'
    })
  }
</script>
<template>
  <uni-section title="路由推送" type="line">
    <view class="uni-ma-5 uni-pb-5 example_item_wrapper">
      <button size="mini" @click="toIndex()">首页</button>
    </view>
  </uni-section>
</template>
