import useRouterStore from '@/useRouterStore'
import { Button } from 'ant-design-vue'
import { defineComponent } from 'vue'

export default defineComponent(() => {
  const router = useRouterStore()
  return () => (
    <div class="absolute left-0 top-0 w-full h-full p-4">
      this is user
      <Button
        onClick={() => {
          router.path = 'global-login'
        }}
      >
        登录
      </Button>
    </div>
  )
})
