🐛 fixed the third-party login bug

This commit is contained in:
landaiqing
2024-08-30 21:52:48 +08:00
parent d91e683e87
commit 2c6ad81720
11 changed files with 254 additions and 72 deletions

View File

@@ -1,20 +1,19 @@
<template>
<div>
<h1>Welcome to Main Page</h1>
<AButton @click="handleClick">获取用户数据</AButton>
{{ data }}
<!-- <AButton @click="handleClick">获取用户数据</AButton>-->
</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();
};
// import {useRequest} from "alova/client";
// import {getUserInfo} from "@/api/user";
//
// const {data, send} = useRequest(getUserInfo, {
// immediate: false
// });
// const handleClick = () => {
// send();
// };
</script>
<style scoped>