You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
486 B
Vue

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<script setup>
/***
* nameApi 示例
* usersa0ChunLuyu
* date2022-04-13 09:20:12
*/
import {yo} from '~/api'
const response_content = ref('')
const yoClick = async () => {
const response = await yo({yoo: 'foo'})
if (response) response_content.value = JSON.stringify(response)
}
</script>
<template>
<tr>
<td>Api</td>
<td>{{ response_content }}</td>
<td>
<n-button @click="yoClick()" secondary strong>发送</n-button>
</td>
</tr>
</template>