🎨 use alova / add nprogress
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
<template>
|
||||
<AButton> 测试页面</AButton>
|
||||
<AButton> alvoa</AButton>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import useStore from "@/store";
|
||||
|
||||
const store = useStore().user;
|
||||
store.setUser({
|
||||
token: "test",
|
||||
userId: "1",
|
||||
});
|
||||
console.log(store.getUser()?.userId);
|
||||
// import {getUserInfo} from "@/api/user";
|
||||
// import {useRequest} from "alova/client";
|
||||
//
|
||||
// const {loading, data, send} = useRequest(getUserInfo, {
|
||||
// immediate: true,
|
||||
// throttle: 3000,
|
||||
// });
|
||||
// const handleClick = () => {
|
||||
// send();
|
||||
// console.log(loading.value);
|
||||
// console.log(data.value);
|
||||
//
|
||||
// };
|
||||
</script>
|
||||
<style src="./index.scss" scoped>
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user