qq oauth2 login complete

This commit is contained in:
landaiqing
2024-08-21 19:40:50 +08:00
parent 7683fffb34
commit 95f722fa93
14 changed files with 165 additions and 76 deletions

View File

@@ -0,0 +1,21 @@
<template>
<div>
<h1>Welcome to Main Page</h1>
<AButton @click="handleClick">获取用户数据</AButton>
{{ data }}
</div>
</template>
<script setup lang="ts">
import {useRequest} from "alova/client";
import {getUserInfo} from "@/api/user";
const {data, send} = useRequest(getUserInfo, {
immediate: false
});
const handleClick = () => {
send();
};
</script>
<style scoped>
</style>