🎨 updated comment code framework / add comment verification

This commit is contained in:
landaiqing
2024-09-26 01:15:29 +08:00
parent e4b9214840
commit 96ae754efd
22 changed files with 1997 additions and 1258 deletions

View File

@@ -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>