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

    <RouterLink to="/site/index">跳回到主页</RouterLink>
  </div>
</template>

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