🎨 updated comment code framework / add comment verification
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div style="display: flex; flex-direction: column; align-items: center; justify-content: center;">
|
||||
<h1>Welcome to Main Page</h1>
|
||||
<AButton @click="handleClick">获取登录用户角色</AButton>
|
||||
{{ data }}
|
||||
|
||||
<CommentReply/>
|
||||
</div>
|
||||
</template>
|
||||
@@ -10,7 +10,8 @@
|
||||
import {useRequest} from "alova/client";
|
||||
import {getUserPermissions} from "@/api/user";
|
||||
import useStore from "@/store";
|
||||
import CommentReply from "@/components/CommentReply/CommentReply.vue";
|
||||
import CommentReply from "@/components/CommentReply/index.vue";
|
||||
|
||||
|
||||
const {data, send} = useRequest(getUserPermissions, {
|
||||
immediate: false
|
||||
@@ -20,6 +21,8 @@ const handleClick = () => {
|
||||
const userId: string = userInfo.user.uid;
|
||||
send(userId);
|
||||
};
|
||||
|
||||
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
|
Reference in New Issue
Block a user