Skip to content

Commit 6d9791a

Browse files
committed
fix: playground infer
1 parent 153e1e5 commit 6d9791a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

playground/app/src/App.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ const client = useFunctions();
1010
1111
const endpoint = ref('world');
1212
13-
const message = ref('');
13+
const message = ref<object>({});
1414
1515
const response = ref();
1616
1717
watch(
1818
endpoint,
1919
async (endpoint) => {
20-
client.raw.get('/api/' + endpoint).then((resp) => {
20+
client.raw.get(`/api/${endpoint}`).then((resp) => {
2121
response.value = resp;
2222
message.value = resp.data;
2323
});
@@ -32,7 +32,7 @@ watch(
3232
<h1 text-2xl font-bold pb4 border="b-1 base">Vite Plugin Cloudflare Functions</h1>
3333
<div flex justify-start items-center>
3434
<span mr2 text-base-500>Endpoint:</span><span mr1 font-bold>/api/</span
35-
><c-input type="text" id="endpoint" v-model="endpoint" name="" class="font-bold"
35+
><c-input type="text" id="endpoint" v-model="endpoint" class="font-bold"
3636
><template #label></template
3737
></c-input>
3838
</div>

0 commit comments

Comments
 (0)