mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-19 06:21:44 +01:00
13 lines
185 B
Vue
13 lines
185 B
Vue
<script setup lang="ts">
|
|
const client = useClient()
|
|
const data = await client.query('getUser', {
|
|
name: 'roberts',
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
{{ data }}
|
|
</div>
|
|
</template>
|