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>
/**
* name:
* user:sa0ChunLuyu
* date:2022-04-19 16:17:56
*/
import {
yo
} from '@/api'
ref
} from 'vue'
const res = ref('')
const yoApi = async () => {
const response = await yo({
yoo: 'foo'
})
if (response) {
res.value = JSON.stringify(response)
}
</script>
<template>
<uni-section title="Api" type="line">
<view class="uni-ma-5 uni-pb-5 dev_item_wrapper">
<view>{{ res }}</view>
<button size="mini" @click="yoApi()">YO !</button>
</view>
</uni-section>
</template>