feat(projects): add alova examples (#647)

* feat: optimistic subpackage `@sa/alova`

* feat: add alova examples
This commit is contained in:
Scott Hu
2024-10-17 17:20:48 +08:00
committed by Soybean
parent 641f3160d6
commit a6545265ac
33 changed files with 1484 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
<script setup lang="ts">
import { accessAction } from '@sa/alova/client';
const handleAutoRequestSend = async () => {
accessAction(/^autoRequest/, async ({ send }) => {
await send();
});
};
</script>
<template>
<NButton @click="handleAutoRequestSend">{{ $t('page.alova.scenes.triggerAllRequest') }}</NButton>
</template>