<template>
  <div>
    {{ state }}
    <a-button type="error" @click="() => state.count++">点击+1</a-button>
    <a-button type="error" @click="() => i++">点击+1</a-button>

    <RouterLink to="/site/index2">跳转到子页</RouterLink>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue';
  const state = ref({ count: 0 });
  const i = ref(1);
</script>
