<template>
    <div>
        <u-button @click="toIndex">会首页</u-button>
    </div>
</template>

<script>
    export default {
        methods: {
            toIndex() {
                uni.switchTab({
                    url: '/pages/im/index'
                })
            }
        }
    }
</script>

<style>
</style>
