🐛 fixed the third-party login bug
This commit is contained in:
@@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user