fix: unresolvable runtime config

This commit is contained in:
Robert Soriano
2022-05-23 11:24:07 -07:00
parent eea5733dcd
commit 2cfa64fcc6
3 changed files with 11 additions and 11 deletions

View File

@@ -1,12 +1,12 @@
<script setup lang="ts">
const client = useClient()
const { $client } = useNuxtApp()
const { data: todos, pending, error, refresh } = await useAsyncQuery(['getTodos'])
const addTodo = async () => {
const title = Math.random().toString(36).slice(2, 7)
try {
const result = await client.mutation('addTodo', {
const result = await $client.mutation('addTodo', {
id: Date.now(),
userId: 69,
title,