mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-06-02 17:23:38 +08:00
27 lines
422 B
Vue
27 lines
422 B
Vue
<script setup lang="ts">
|
|
import {
|
|
fetachGet,
|
|
} from '@/service'
|
|
|
|
const emit = defineEmits<{
|
|
update: [data: any] // 具名元组语法
|
|
}>()
|
|
|
|
async function pinterEnv() {
|
|
const res = await fetachGet({ a: 112211, b: false })
|
|
emit('update', res)
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<n-card title="Get" size="small">
|
|
<n-button @click="pinterEnv">
|
|
click
|
|
</n-button>
|
|
</n-card>
|
|
</template>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|